Thursday, September 20, 2012

UNIX Command

more -p G filename  

go to the end of file

du- sk

check file size

df -G

show disk usage

vi

10yy and p copy 10 lines and paste

ftp

ftp ipaddress

cd , ls or dir

get xxxx
put xxxx


ls -al | tee a.txt

Tar

tar -xvf xxxxx.tar

In

In -s xxxxx.so.6.0.1 xxxxxx.so

uname -a

Show the os information


Vi

Search and Replace

:%s/aaa/bbb/g

replace all aaa with bbb

No comments:

Post a Comment