After that go with ftp client or network browser to /tmp/ directory of Enigma2 tuner/pvr and download the screenshot.bmp file. Type "grab" to see more options, for saving jpg/png files and mixing video and OSD.

Copy the contents of one file to another file, resulting in two copies of the same file on your account.

cp oldfilename newfilename

Copy the contents of one directory to another directory. Make sure you have created the destination directory before trying to copy files to it - see mkdir above. Results in two copies of the files on your account; one copy in the existing directory and another in the destination directory.

The find command can be used to locate files or a group of files. It can also be used to display directories. The example given will find all file and directory names within the current directory and subdirectories of it that begin with the letter n. (You can also explore using the locate command - type info locate and/or man locate for usage information.)

find -name ‘n*’

To locate text in a specific file or directory of files (use * in place of filename to search all of the files in the current directory). The -i argument indicates the search is to disregard cASe, the -n instructs to show the corresponding line number, and -w tells it to match only based on the whole word. (This doesn’t even begin to touch on the power of grep and its many uses. In addition to its searching capability, the grep command can be used in combination with other commands to act as a filter. It also allows the use of “wildcards”. Two other variations of grep are also available, egrep and fgrep. To begin your quest for more information, type man grep and/or info grep.)

Use to rename a file (mv fileA fileB), move a file (mv fileA /dirA/), or both (mv fileA /dirB/fileB).

mv oldfilename newfilename

Removes (deletes) the specified file. (The -i is not necessary, but is recommended as it will prompt you to confirm the action first. When prompted, type y to confirm or type n if you changed your mind.)

Changes the permissions on a filename or directory as specified. (First go with cd command to directory where the file is.)

chmod permissions filename

For example,

chmod 755 HackSat_Key_downloader_userscript.sh

You can also add or remove permissions using letters (you can see them with "ls -l", as described above), which is handy for multiple files, to strip away "execute" permission from all files, or to add "read" and "execute" to all .sh files, or make all files read-only (not writable):

To archive a directory and all of its contents including subdirectories, navigate to where the directory is located and type the above command, replacing filename.tar with the name you wish to give the archive file and directoryname with the name of the directory you wish to archive. Alternatively, you can archive a select group of individual files (or directories) by specifying each file name in place of directoryname separated by spaces, like tar -cvf filename.tar fileA fileB fileC. Note: When creating a tar file (aka “tarball”) be sure to specify the name you wish to give the tar file! (TAR indicates Tape ARchive, as it was originally a tape archiving program. The -c means “create”, v means “verbose” (which basically says tell me what you’re doing), and the f indicates that a filename will follow (filename.tar)).
To create, list or extract from gzip compressed archives, use the extra "z" switch. Note that "-czf" if identical to "-c -z -f". Most archives were created this way.

Typing this command will result in a list of the contents of the tar file. This is generally a good thing to do before unpacking the tar file to be sure there are no matching filenames which will result in files being unintentionally overwritten.

tar -tvf filename.tar
tar -tvzf filename.tar.gz

You can see the similarities to the command used to tar the file. This time, though, you use -x to “extract” instead of the -c used to create. The files will be placed in the current directory. You can also extract only certain select files (or directories) by specifying the individual names, separated by spaces, after the tar filename, such as tar -xvf filename.tar fileA fileC

tar -xvf filename.tar
tar -xzvf filename.tar.gz

Instead of the -z switch, you can use gzip on the commandline to compress single files. This is much less efficient though. The filename will automatically change from filename.tar to filename.tar.gz (appending .gz to the file extension).

gzip filename.tar

This command (g”unzip”) is used to uncompress a .gz file, which will also result in the filename being changed back to filename.tar. Alternatively, you can use gzip -d (for “decompress”) in place of gunzip.

gunzip filename.tar.gz

Sometimes ".tar.gz" is abbreviated to ".tgz".
You may also encounter "bzip2" files, typically named filename.tar.bz2. To uncompress these, type the following: