unix

unix
Solaris/hp unix
ls(list all of information)
ll -rt( detail order by time)
- rwx r-x ---
file, cur user, cur group, other user

d rwx r-x ---
folder, .....

more
pg(show percent)

case sentive

vi test.txt
i--- insert
o --- new line
x -- delte
dd delete one line
a -- add
:wq  save and exit
:q! just exit

any operation should press esc.

man vi(show help)

mandarin

consequence of violation

cd - (back last dest)

cd ~ (back to root )

cd ~/bin/

regular must confirm unique file

.ksh   (equal windows .bat)

change right
chmod 777
chmod 755 abcd.ksh (always use like this)


rwxrwxrwx
111111111
777

\\fsi_nec

shpu89_st shpu89_rnd

whoami

chown rcotbg2:rcotgp yo.ksh (change user)

if two user use, how to control (1)

mkdir test
ll -rt
cd test
touch a. txy
touch b.txt
cd .
cd ..
rm -Rf test

man rm
(next page press s)


man cp
man mv(just change index, so very fast)

./ (current folder)

od -c 73.txt

unix change another line is \n

upload file should always use binary type.

we can copy from windows to vi

should press i first


UE(not change to ...format)
have ftp function

rnd (develop)

man pwd

tar -cvf a.tar 234.txt 23413.txt (just package)
tar -xvf a.tar ./

tar can remeber the destination
so, we'd better use current destination

gzip abc.tar
will remove old tar, create abc.tar.gz

ungzip

so we should backup the tar file

bdf . can find disk space

top
 (show memory use)


uat env ctrl+c logout

login to root destination

ll -a .profile
(jdk, environment verb)
can use when jdk configure wrong.

always backup when change one file.

ps -ef | grep java (select thread.)
ps -ef (all thread.)
kill -9 272555

head -10(just show pre 10 row)
tail -10(just show )

cd ser*

tail -f  ***.log (listen log, because log it updating all the time. just show, not save)

grep shaoliang *.ksh(find from specity destination, and context)
grep -l shaoliang *.ksh()
grep -0 shaoliang *.ksh(counter count)

find(can find from all disk, just like windows search, just properties)

nohup (do use it when we debug, the system will continue when we exit)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章