Help - Search - Members - Calendar
Full Version: Run A Comand
Linuxhelp > Support > Technical Support
zerocool
helllo i would like to know how can i run a comand. for example how do i unzip a tar file that is in my root ddrectory???
hughesjr
to run commands in linux ... use either the console (press Ctrl-Alt-F2), login, and type the commands (not recommended) ...OR... a terminal window (recommended).

How to get a terminal window varies by linux distro, but if you are running X and one of the major desktops (KDE, GNOME, XFce, etc.) then press the menu button ... and System (or System Tools) there is a terminal selection.

here are some commands from the console (the command is bold (the text before the dash, and the description is not bold ... so pwd is the command to print the current directroy ):

pwd - stands for print working directory ... Prints the full path of the current working directory

cd path - change directories ... so cd /usr goes to the /usr directory
---------------------
tar - tape archiver .... started as an archive utility to backup multiple files to tape ... can also be used to combine multiple files into one file. The current Linux version can be used in conjuction with gzip and bzip2 to combine (tar) and compress/uncompress (gzip, bzip2) files ... when tar is used to combine files, the file normally has the extension .tar ... if used with gzip the file extension is normally either .tgz or .tar.gz ... if used with bzip2, the extension is normally .tar.bz2.

examples:

tar -xvf filename - extract a .tar file
tar -xvzf filename - extract a .tgz or .tar.gz file
tar -xvjf filename - extract a .tar.bz2 file

to create tar files:

tar -cvf filename.tar path_to_archive
tar -cvzf filename.tar.gz path_to_archive
tar -cvjf filename.tar.bz2 path_to_archive
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.