Friday, December 17, 2010

LINUX COMMANDS (1)

File/Directory Basics

ls - List files
cp - Copy files
mv - Rename files
rm - Delete files
ln - Link files
cd - Change directory
pwd - Print current directory name
mkdir - Create directory
rmdir - Delete directory

File Viewing

cat - View files
less - Page through files
head - View file beginning
tail - View file ending
nl - Number lines
od - View binary data
xxd - View binary data
gv - View Postscript/PDF files
xdvi - View TeX DVI files

File Creation and Editing

emacs - Text editor
vim - Text editor
umask - Set default file protections
soffice - Edit Word/Excel/ PowerPoint docs
abiword - Edit Word documents
gnumeric - Edit Excel documents

File Properties

stat - Display file attributes
wc - Count bytes/words/lines
du - Measure disk usage
file - Identify file types
touch - Change file timestamps
chown - Change file owner
chgrp - Change file group
chmod - Change file protections
chattr – Change advanced file attributes
lsattr - List advanced file attributes 

No comments:

Post a Comment