Friday, 4 October 2013

Linux Tips For New Users

Linux Tips For New Users
The command line
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
CommandDescription
startxstart x windows
shutdown -r nowrestart
shutdown -h nowshutdown w/o restart
sulogin to root
exitexit root/end terminal
manview manual entry for specfied command
man -k keywordsearch manual listingsfor keyword
mv filename newfilenamerename filename to newfilename
mv filename newdirectorymove filename to newdirectory
lslists files in directory
ls -alfilelisting with details
rm filenamedeletes file
rm -rf foldernamedelete folder and all subfile
cp oldfile newfilemakes copy with name newfile
cp oldfile directorymakes copy of file in indicated directory
cd directorychange to specified directory
cd ..move one directory up
tar -xvf file.tarunzip tar file
tar -t file.tarlist contents of tar file
tar -xvfz file.tar.gzunzip tar.gz file
tar -xvfj file.tar.bz2unzip tar.bz2 file
gunzip file.gzunzip gzip file
unzip file.zipunzip zip file
bunzip2 file.bz2unzip bzip2 file
DOS CommandUNIX CommandDescription
cdcdchange (to) directory
attribchmodchange file protections
compdiffcompare files
copycpcopy file(s)
delrmdelete file
rdrmdirdelete directory
dirlslist directory contents
editpicoedit a file
findgrepfind text in a file
helpmanget information on a command
mdmkdirmake a new directory
movemvmove file(s)
renmvrename file
date, timedateshow date and time
chkdskdfshow free disk space (storage)
typecatshow file contents
type | morecat | moreshow file, screen-by-screen
sortsortsort data

No comments:

Post a Comment