标题:
平时常用的linux指令
[打印本页]
作者:
51黑tt
时间:
2016-3-6 02:52
标题:
平时常用的linux指令
rm -rf filename 删除文件
r means 递归
recursion
,f means force。
mv hello.c hello.txt 相当于改名。mv source destination
mv /root/hello.c / 把/root/hello.c 移到/
cp /root/hello.c / 把/root/hello.c 复制到/ 也可以加-rf条件
find / -name hello.c 在根目录下找name为hello.c的文件
find / -name "*hello*"
sudo su 切换用户 ubuntu下root切到general user
exit
ifconfig
ifconfig eth0.。。。。
service vsftpd status/start/stop (bridge)network adapter 网卡
service smb status/restart (host-only)network adapter 网卡
清掉防火墙::iptables -F
chkconfig - -list
查查有没有安装
ftp
服务器了。。 检查安装了哪些服务器
sudo su 切换用户
共享文件挂载在 /mnt/hgfs/下 vmware_tool;
我公司的smb共享文件挂载在 /opt/opt_smb下
欢迎光临 (http://www.51hei.com/bbs/)
Powered by Discuz! X3.1