|
Friday, 19 February 2010 13:51 |
Command tar
Creates archive files or extract files from archives.
Syntax
tar [options] file_or_directory
Options
-c creates a new archive. -d compares the files from the archive files from the current directory. -r adds the files in the archive. -t displays the contents of the archive. -x extracts files from the archive. -C directory extracts the files in the specified directory. -f file read the archive from the specified file. -L n determines the size of the tape to n kilobytes. -N date archive only files newer than specified date. -T file archives or extract files with names listed in the file file. -v verbose. -z compresses or decompresses the archive with gzip. -j compresses or decompresses the archive through bzip2.
Description
The tar command creates an archive file, or extract files from existing archives.
|
|
|
Friday, 19 February 2010 13:40 |
Command tail
Displays the last few lines of the file.
Syntax
tail [options] file
Options
-N (where N - number) displays the last N lines. -n N (where N - number) displays the last N lines. -f reads a file at specified intervals and displays the new line.
Description
tail command displays the last lines of the file. By default last 10 lines of the file.
|
|
Friday, 19 February 2010 13:37 |
Command rmdir
Deletes the specified directory (if it is empty).
Syntax
rmdir [options] directory
Options
-p remove all parent directories which become empty.
Description
The command rmdir removes empty directories. If the directory is not empty, you must remove all files along with the directory using the command rm -r.
|
|
Friday, 19 February 2010 13:34 |
Command rm
Removes one or more files.
Syntax
rm [options] files
Options
-f deletes files without asking. -i asks for confirmation before deleting files. -r recursively deletes files in all subdirectories contained in the catalog. -v displays the names of the files before deleting them.
Description
The rm command removes the specified files. To delete a file, you must have the right to record the directory containing this file.
|
|
Friday, 19 February 2010 12:49 |
Command pwd
Prints the current working directory.
Syntax
pwd
Options
No
Description
The command pwd prints the current working directory. It is a built-in command of Bash.
|
|
|
|
|
<< Start < Prev 1 2 3 4 5 6 Next > End >>
|
|
Page 1 of 6 |