@big-bear
2018-01-22T08:30:16.000000Z
字数 929
阅读 901
linux
作用 | 命令 | 解释 | 备注 |
---|---|---|---|
更改用户用户组 | usermod -g group user | ||
查看用户用户组 | groups user |
命令:
chmod 777 tt.htm
参考链接:http://www.cnblogs.com/sipher/articles/2429772.html
命令:
cp -R ./work ./work0525
netstat –apn | grep 8080
unzip xxxx.zip(压缩文件名称) 会在当前目录下新建一个xxxx目录,然后文件解压进去
#!/bin/sh
location="/root/sqlbak/"
find $location -mtime +30 -type f |xargs rm -f
today=$(date +%Y%m%d)
time=$(date +%H%M%S)
if [ ! -d "$today" ]; then
mkdir "$today"
fi
mysqldump -utnbadmin -ptnb_5120 -h rm-2ze4s2eb30i6p83dv.mysql.rds.aliyuncs.com tnbdb >/home/tiannianbao/mysql-backup/$today/$time.sql
echo "aaa" > a.txt
echo aaa > a.txt
echo "aaa" >> a.txt
echo aaa >> a.txt
du -sm aaa.txt
1.
vi -r {your file name}
rm .{your file name}.swp
2.
在网上搜到了一个类似的提示,不同的Linux提示可能不一样
“.xorg.conf.swp” already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit:
当然可以用R键恢复。