找回密码
 立即注册

QQ登录

只需一步,快速开始

帖子
查看: 1623|回复: 0
收起左侧

平时常用的linux指令

[复制链接]
ID:107189 发表于 2016-3-6 02:52 | 显示全部楼层 |阅读模式
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下


回复

举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表