linux命令大全,磁盘空间,比较工具,远程桌面,用户组,批量删除文件

1.  查看当前文件夹占用磁盘空间大小, diskuse,

#du -sh

2. 安装比较工具

#sudo apt-get install meld

3.查看当前用户远程桌面连接的窗口,需要看所有的需要root用户

#netstat -tunlp
3.1 )手工杀掉已经启动的VNC服务进程
[root@testdb ~]# ps -ef | grep -i vnc | grep -v grep
root      1178     1  0 11:07 pts/2    00:00:00 Xvnc :1 -desktop testdb:1 (root) -httpd /usr/share/vnc/classes -auth /root/.Xauthority -geometry 1024x768 -depth 16 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5901 -pn
root      1182     1  0 11:07 pts/2    00:00:00 vncconfig -iconic

[root@testdb ~]# kill -9 1178

4. 修改文件夹用户和组

#chown -R git.git testdir

5.删除文件夹下面的所有的.svn文件

find . -name "*.svn" -exec rm -rf {} \;

扫描二维码关注公众号,回复: 2434815 查看本文章
注: 
1.{}和\之间有一个空格 
2.find . -name 之间也有空格 
3.exec 是一个后续的命令,{}内的内容代表前面查找出来的文件

猜你喜欢

转载自blog.csdn.net/pan0755/article/details/78623094
今日推荐