Sunday, November 26, 2006

200 Linux Commands for Newbbies

ที่มา : http://truehacker.blogspot.com/2006/11/200-linux-commands-for-newbbies.html

About 200 Linux commands for serious newbies. To get more examples on how each command is used, use this command:

#>man commandname

Where commandname is an command you pick from the table below. If no manual exist, then that command is most likely unavailable for your Linux distro. Ignore it and proceed with other commands.


aliasCreate an alias
awkFind and Replace text, database sort/validate/index
breakExit from a loop
builtinRun a shell builtin
calDisplay a calendar
caseConditionally perform a command
catDisplay the contents of a file
cdChange Directory
cfdiskPartition table manipulator for Linux
chgrpChange group ownership
chmodChange access permissions
chownChange file owner and group
chrootRun a command with a different root directory
cksumPrint CRC checksum and byte counts
clearClear terminal screen
cmpCompare two files
commCompare two sorted files line by line
commandRun a command - ignoring shell functions
continueResume the next iteration of a loop
cpCopy one or more files to another location
cronDaemon to execute scheduled commands
crontabSchedule a command to run at a later time
csplitSplit a file into context-determined pieces
cutDivide a file into several parts
dateDisplay or change the date & time
dcDesk Calculator
ddData Dump - Convert and copy a file
declareDeclare variables and give them attributes
dfDisplay free disk space
diffDisplay the differences between two files
diff3Show differences among three files
dirBriefly list directory contents
dircolorsColour setup for `ls'
dirnameConvert a full pathname to just a path
dirsDisplay list of remembered directories
duEstimate file space usage


echoDisplay message on screen
edA line-oriented text editor (edlin)
egrepSearch file(s) for lines that match an extended expression
ejectEject CD-ROM
enableEnable and disable builtin shell commands
envDisplay, set, or remove environment variables
evalEvaluate several commands/arguments
execExecute a command
exitExit the shell
expandConvert tabs to spaces
exportSet an environment variable
exprEvaluate expressions
factorPrint prime factors
fdformatLow-level format a floppy disk
fdiskPartition table manipulator for Linux
fgrepSearch file(s) for lines that match a fixed string
findSearch for files that meet a desired criteria
fmtReformat paragraph text
foldWrap text to fit a specified width.
forExpand words, and execute commands
formatFormat disks or tapes
freeDisplay memory usage
fsckFile system consistency check and repair
functionDefine Function Macros
gawkFind and Replace text within file(s)
getoptsParse positional parameters
grepSearch file(s) for lines that match a given pattern
groupsPrint group names a user is in
gzipCompress or decompress named file(s)
hashRemember the full pathname of a name argument
headOutput the first part of file(s)
historyCommand History
hostnamePrint or set system name
idPrint user and group id's
ifConditionally perform a command
importCapture an X server screen and save the image to file
infoHelp info
installCopy files and set attributes
joinJoin lines on a common field
killStop a process from running
lessDisplay output one screen at a time
letPerform arithmetic on shell variables
lnMake links between files
localCreate variables
locateFind files
lognamePrint current login name
logoutExit a login shell
lookDisplay lines beginning with a given string
lpcLine printer control program
lprOff line print
lprintPrint a file
lprintdAbort a print job
lprintqList the print queue
lprmRemove jobs from the print queue
lsList information about file(s)
m4Macro processor
manHelp manual
mkdirCreate new folder(s)
mkfifoMake FIFOs (named pipes)
mknodMake block or character special files
moreDisplay output one screen at a time
mountMount a file system
mtoolsManipulate MS-DOS files
mvMove or rename files or directories
niceSet the priority of a command or job
nlNumber lines and write files
nohupRun a command immune to hangups
passwdModify a user password
pasteMerge lines of files
pathchkCheck file name portability
pingTest a network connection
popdRestore the previous value of the current directory
prPrepare files for printing
printcapPrinter capability database
printenvPrint environment variables
printfFormat and print data
psProcess status
pushdSave and then change the current directory
pwdPrint Working Directory
quotaDisplay disk usage and limits
quotacheck Scan a file system for disk usage
quotactlSet disk quotas
ramram disk device
rcpCopy files between two machines.
readread a line from standard input
readonlyMark variables/functions as readonly
remsyncSynchronize remote files via email
returnExit a shell function
rmRemove files
rmdirRemove folder(s)
rpmRemote Package Manager
rsyncRemote file copy (Synchronize file trees)
screenTerminal window manager
sdiffMerge two files interactively
sedStream Editor
selectAccept keyboard input
seqPrint numeric sequences
setManipulate shell variables and functions
shiftShift positional parameters
shoptShell Options
shutdownShutdown or restart linux
sleepDelay for a specified time
sortSort text files
sourceRun commands from a file `.'
splitSplit a file into fixed-size pieces
suSubstitute user identity
sumPrint a checksum for a file
symlinkMake a new name for a file
syncSynchronize data on disk with memory
tacConcatenate and write files in reverse
tailOutput the last part of files
tarTape ARchiver
teeRedirect output to multiple files
testEvaluate a conditional expression
timeMeasure Program running time
timesUser and system times
touchChange file timestamps
topList processes running on the system
traceroute Trace Route to Host
trapRun a command when a signal is set(bourne)
trTranslate, squeeze, and/or delete characters
tsortTopological sort
ttyPrint filename of terminal on stdin
typeDescribe a command
ulimitLimit user resources
umaskUsers file creation mask
umountUnmount a device
unaliasRemove an alias
unamePrint system information
unexpandConvert spaces to tabs
uniqUniquify files
unitsConvert units from one scale to another
unsetRemove variable or function names
unsharUnpack shell archive scripts
untilExecute commands (until error)
useraddCreate new user account
usermodModify user account
usersList users currently logged in
uuencodeEncode a binary file
uudecodeDecode a file created by uuencode
vVerbosely list directory contents (`ls -l -b')
vdirVerbosely list directory contents (`ls -l -b')
viText Editor
watchExecute/display a program periodically
wcPrint byte, word, and line counts
whereisReport all known instances of a command
whichLocate a program file in the user's path.
whileExecute commands
whoPrint all usernames currently logged in
whoamiPrint the current user id and name (`id -un')
xargsExecute utility, passing constructed argument list(s)
yesPrint a string until interrupted
.periodRun commands from a file
###Comment / Remark

No comments:

Post a Comment

Popular Posts