Beruflich Dokumente
Kultur Dokumente
html
The command line (also referred to as the "terminal" or "console") is an alternate way to get things done, in Linux. In some casses,
a succinct command at a terminal can be a lot easier and faster than doing the same task in a graphical user interface (GUI). The
major downside to a command line interface is that it's pretty much useless unless you already know at least some simple
commands.
In most of the distributions of Linux-based operating systems we installed at Free Your Machine (Redhat and Mandrake), pretty
much everything that you would need to do can be done with an easy-to-use graphical interface. But since most people are fairly
familiar with that paradigm, here are some tips on using the command line, and expanding the power you have over your
computer.
Note: when at the command line in linux, you may type tab to autocomplete lines, or get a listing of files in the current directory
beginning with the characters you have typed
Command Description DOS UNIX
Description
startx start x windows Command Command
shutdown -r now restart cd cd change (to) directory
shutdown -h now shutdown w/o restart attrib chmod change file protections
su login to root comp diff compare files
exit exit root/end terminal copy cp copy file(s)
view manual entry for specfied del rm delete file
man
command rd rmdir delete directory
man -k keyword search manual listingsfor keyword dir ls list directory contents
mv filename edit pico edit a file
rename filename to newfilename
newfilename find grep find text in a file
mv filename get information on a
move filename to newdirectory help man
newdirectory command
ls lists files in directory md mkdir make a new directory
ls -al filelisting with details move mv move file(s)
rm filename deletes file ren mv rename file
rm -rf foldername delete folder and all subfile date, time date show date and time
cp oldfile newfile makes copy with name newfile show free disk space
chkdsk df
makes copy of file in indicated (storage)
cp oldfile directory
directory type cat show file contents
cd directory change to specified directory show file, screen-by-
type | more cat | more
cd .. move one directory up screen
tar -xvf file.tar unzip tar file sort sort sort data
tar -t file.tar list contents of tar file
tar -xvfz file.tar.gz unzip tar.gz file
tar -xvfj file.tar.bz2 unzip tar.bz2 file
gunzip file.gz unzip gzip file
unzip file.zip unzip zip file
bunzip2 file.bz2 unzip bzip2 file