Hadoop Linux Commands Reference

File/Directory Basics -

CommandDescription
mkdir Making Directory
cdChange the Directory
clearClear Commands
pwdPresent Working Directory
dateDisplay Date
who am IDisplay the user name
rm Delete files
lslist files
cpCopy files CP <source-path> <destination-path>
mvRenaming the files mv <source-path> <renaming-path>
lnLink files
rmdirRemove directory

File Viewing Commands -

CommandDescription
catView files
lesspage through files
headview file from beginning (1st 10 records will be displayed)
tailview file ending (last 10 records will be displayed)
nldisplays number of lines
odview the binary data
xxdview hexa binary data
gvview post script/pdf files
xdviview text dvi files

File Creation & Editing -

CommandDescription
emacstext editor
picotext editor
vitext editor
umaskset default file protections
abiwordedit word documents
gnumericedit excel documents

File properties -

CommandDescription
statdisplay file attributes
wccount bytes/words/lines
dumeasure disk usage
fileidentify file types
touchchange the file stamps
chownchange the file owner
chgrpchange the file group
chmod change file protections
chattrchange advance file attributes
lsattrlist advance file attributes

File Searching -

CommandDescription
findlocate files
s locatelocate files via index
whichlocate commands
whereislocate standard files

File text manipulation -

CommandDescription
grepsearch text for matching lines
cutextract columns
pasteappend columns
trtranslate characters
sortsort lines
uniqlocate identical lines
teecopy stdin to a file and to stdout simultaneously

File compression -

CommandDescription
gzipcompress files (GN Zip)
compresscompress files(unix)
bzip2compress files(bzip2)
zipcompress files(windows zip)

File comparison -

CommandDescription
diffcompare files line by line
commcompare sorted files
cmpcompare files byte by byte
md5sumcompute check sums

Spelling operations -

CommandDescription
looklookup spelling
aspellcheck spelling interactively
spellcheck spelling in batch

Disk and file systems -

CommandDescription
dfshow free space
mountmake a disk available
fsckcheck the disk for errors
syncflush disk caches

Backups and remote storage -

CommandDescription
mtcontrol a tape device
dumpbackup a disk
restorerestore a dump
tarread/write tape archives
cd recordburn a cd
rsyncmirror a set of files

Printing -

CommandDescription
lprprint files
lpqview print queue
lprmremove print jobs

Audio & video -

CommandDescription
gripplay CDs & ripmp3
xmmsPlay Audi files

Processes -

CommandDescription
psList all processes
wList user’s processes
uptimeview the system load
topmonitor processes
xloadmonitor system load
freedisplay free memory
killterminate process
nice Set process priorities
renicechange process priorities

Scheduling jobs -

CommandDescription
sleepwait for some time
watchrun programs at set intervals
atschedule a job
crontabSchedule repeated jobs

Hosts -

CommandDescription
unameprint the system information
hostnameprint the system’s hostname
ifconfigset/display network information
hostlookup DNS
who islookup domain registrants.
Pingcheck if the host is reachable
Trace routeview network path to host

Networking -

CommandDescription
Sshsecurely login into remote hosts
telnetlog into remote hosts
scpsecurely copy files between hosts
sftpsecurely copy files between hosts
ftpcopy the files between shots
evolutionGUI email client
mutttext-based email client
mailminimal email client
Mozillaweb browser
Lynxtext only web browser
Wgetretrieve web pages to disk
Srlnread UseNet news
Gaiminstant messaging/IRC
Talklinux/unix chat
Writesend mesgs to terminal
Mesgprohibit talk/write