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)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值