Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

some useful commands

for files and directories


cat-->Display file content
cd-->change directory
chgrp-->change file group
chmod -->change permissions
cp-->copy from source to destination.
file-->determine file type.
find-->find files
grep-->search files for regular expressions
head-->display first few lines of a file.
ln-->create a softlink on old name.
ls-->display information about the file type.
mkdir-->create new directory dirname.
more-->display data in paginated form.
mv -->move a old name to a new name.
pwd-->print working directory.
rm-->remove,delete a filename.
rmdir-->delete an existing directory provided it is empty.
tail-->prints last few lines in a file.
touch -->update the timesamp of the file.
manupulating data
awk-->pattern scanning and processing language.
cmp-->compare the contents of two files
comm-->compare sorted data.
cut-->cut out selected fields of each line of a file.
diff-->differential file comparator.
expand-->expand tab to spaces
join-->jin files on come common field.
perl-->data manipulation language.
sed-->stream text editor.
sort-->sort file data.
split-->split files into smaller files.
tr-->translate characters
uniq-->reports repeated lines in a file.
wc-->count words,lines and charecters
vi-->opens vi text editor.
vim-->opens vim text editor.
fmt-->simple text formatter.
spell-->check text for spelling error.
ispell-->check text for spelling error.
emacs-->GNU projects EMACS.
ex,edit-->line editor.
======================================
COMPRESSED FILES
=======================================
compress-->Compress files
gunzip-->Uncompress gzipped files
gzip-->GNU alternative compress method.
uncompress-->Uncompress files.
unzip-->List,test and extract compressed files in ZIP archive.
zcat-->Cat a compressed files.
zcmp-->Compare compressed files.
zdiff-->compare compressed files.
zmore-->File perusal filter for crt viewing of compressed text.
===============================================================
GETTING INFORMATION
===============================================================
apropos-->Locate commands by keyword lookup
info-->Display command information pages online.
man-->display manual pages online.
whatis -->search the whatis database for complete words.
yelp-->GNOME help viewer .
===============================================================
NETWORK COMMANDS
===============================================================
ftp-->File transfer program.
rcp-->remote file copy.
rlogin-->Remote login to a Unix hot.
rsh-->remote shell.
tftp-->Trivial file transfer program.
telnet-->Make terminal connection to another host.
ssh-->Secure shell terminal or command connection.
scp-->Secure shell remote file copy.
sftp-->secure shell file transfer program.
===============================================================
Message between users..
===============================================================
evolution-->
http://www.tutorialspoint.com/unix/unix-useful-commands.htm
http://mally.stanford.edu/~sr/computing/basic-unix.html
http://mally.stanford.edu/~sr/computing/emacs.html

You might also like