注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 窥冰山一角解密流氓软件
 帮助

aaron note linux shell command


2008-04-29 13:03:59
 标签:linux shell command   [推送到技术圈]

文件传输 vsftpd or winscp
远程登录 SecureCRT v5.0

http://www.phpchina.com/download/handbook/linux-html/type17.html

强行结束 kill -9
批量文件替换 find |grep .xml | xargs perl -i -pe s%'<value>20</value>'%'<value>500</value>'%g

nohup curl "" > output.txt
nohup curl "" > /dev/null
crontab -e
crontab -l

cat >
vi (i Ctrl+F Ctrl+B /查找 n查找下一个 \c查找时不区分大小写 :w :q :q!)
head
--help (man)
|more

cat hc.20081128.out |more
cat hc.20081128.out |grep 'abc'
cat hc.20081128.out |grep '\-\-\-\-\-\-'


ps -aef | grep [name]
ps -aef | grep 'ora_*_[SID]$'
ps aux | grep java
ipcs -a
sqlplus '' /as sysdba ''

ls -l
ls --help |more
vi /etc/inittab
change 'id:5:initdefault:' to 'id:3:initdefault:'

(change linux to English)
temporary:
#export LC_ALL=POSIX
persistent:
编辑/etc/sysconfig/目录下的i18n文件,将LC_ALL=POSIX

view or find installed software:
rpm -ivh [file_name]
rpm -qa |more
rpm -q software_name (rpm -q ftp) (rpm -q apache)(rpm -qa | grep httpd)
uninstall: rpm -e or rpm -ev
swlist

[sudo ]dpkg -i package_file.deb
[sudo ]dpkg -r package_name

du -h --max-depth



/etc/samba/smb.conf
1.hosts allow = 192.168.0.
security = share
2.[share_name]
comment = #comment
path = /home/share
browseable =
writable =
guest ok =
3.
id nobody
uid=99(nobody) gid=99(nobody) groups=99(nobody)
chown -R nobody:nobody /home/share
4. ;service iptables stop
service network restart
service smb start


tar -zxvf; cp; mv;
find / -name smb.conf

./configure
make
make install

chown; chgrp
chmod 777 /root/tmp




    文章评论
 
 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: