Linux and UNIX Systems Configuration Help, How To, Tutorial and Basic Information

  • Decrease font size
  • Default font size
  • Increase font size
  • default color
  • red color
  • green color
Home Commands
Command
tar PDF Print E-mail
Friday, 19 February 2010 13:51
AddThis Social Bookmark Button

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.

 
tail PDF Print E-mail
Friday, 19 February 2010 13:40
AddThis Social Bookmark Button

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.

 
rmdir PDF Print E-mail
Friday, 19 February 2010 13:37
AddThis Social Bookmark Button

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.

 
rm PDF Print E-mail
Friday, 19 February 2010 13:34
AddThis Social Bookmark Button

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.

 
pwd PDF Print E-mail
Friday, 19 February 2010 12:49
AddThis Social Bookmark Button

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.

 
More Articles...
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Page 1 of 10

Latest News

Friends

Thanks David Ayvazyan for provided useful information and discussions.
www.gnu.am (Armenian Translation)