linux常用命令

0、寻找文件

find

locate

whereis

which

type

1、mysql配置文件

mysql配置文件位于:

/etc/my.cnf(或者是 /etc/mysql/my.cnf)

 

2、查看文件大小

ll -h(human-readable)

 

3、压缩文件

tar   -zcvf   dst.tar.gz   src.txt

 

4、复制文件

cp   src.txt    dst.txt

 

5、加载U盘

mount  -t   vfat   /             /mnt/usb

 

6、卸载U盘

umount    /mnt/usb

 

posted @ 2016-11-02 17:30  cppsurain  阅读(93)  评论(0编辑  收藏  举报