找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 1626|回复: 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下


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 顶 踩
回复

使用道具 举报

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

本版积分规则

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

Powered by 单片机教程网

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