Tips related to

Friday, 9 July 2010

VALUABLE UNIX Commands


CommandExampleDescription
1. grep grep "bad word" *Find which files contain a certain word
2. chmod chmod 644 *.html
chmod 755 file.exe
Change file permissions read only
Change file permissions to executable
3. passwdpasswdChange passwd
4. ps ps aux
ps aux | grep dhyatt
List all running processes by #ID
List process #ID's running by dhyatt
5. kill kill -9 8453Kill process with ID #8453
6. gcc (g++) gcc file.c -o file
g++ fil2.cpp -o fil2
Compile a program written in C
Compile a program written in C++
7. gzip gzip bigfile
gunzip bigfile.gz
Compress file
Uncompress file
8. mail
(pine)
mail me@tjhsst.edu < file1
pine
Send file1 by email to someone
Read mail using pine
9. telnet
ssh
telnet vortex.tjhsst.edu
ssh -l dhyatt jazz.tjhsst.edu
Open a connection to vortex
Open a secure connection to jazz as user dhyatt
10. ftp
ncftp
ftp station1.tjhsst.edu
ncftp metalab.unc.edu
Upload or Download files to station1
Connect to archives at UNC

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | 100 Web Hosting