找回密碼
 立即注冊(cè)

QQ登錄

只需一步,快速開始

搜索
查看: 1626|回復(fù): 0
打印 上一主題 下一主題
收起左側(cè)

平時(shí)常用的linux指令

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
ID:107189 發(fā)表于 2016-3-6 02:52 | 只看該作者 回帖獎(jiǎng)勵(lì) |倒序?yàn)g覽 |閱讀模式
rm -rf filename   刪除文件
r means 遞歸recursion,f  means force。
mv hello.c hello.txt   相當(dāng)于改名。mv  source  destination
mv /root/hello.c  /   把/root/hello.c 移到/
cp  /root/hello.c /     把/root/hello.c 復(fù)制到/   也可以加-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 網(wǎng)卡
service smb status/restart     (host-only)network adapter 網(wǎng)卡
清掉防火墻::iptables  -F
chkconfig  - -list查查有沒有安裝ftp服務(wù)器了。。   檢查安裝了哪些服務(wù)器
sudo  su   切換用戶

共享文件掛載在  /mnt/hgfs/下   vmware_tool;
我公司的smb共享文件掛載在 /opt/opt_smb下


分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復(fù)

使用道具 舉報(bào)

本版積分規(guī)則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表