chown rahul testfile.txt // Set the file owner of testfile.txt to user “rahul”.
chown rahul:root testfile.txt // Set the file owner of testfile.txt to user “rahul” and also set the group owner to “root”.
chown -R www-data:www-data /var/www/data
chmod 755 filename
chmod -R 755 /var/www/html
lsof -i :3306
du -sh *
du -sh /app/*
#删除5天前的文件 # -exec参数,如果查找有返回,可在exec参数后加上需要操作的命令,查找结果用{}来代替
find /var/log/hive/ -name "*" -mtime +5 -exec rm -rfv {} \;
----------------------------------------------------------------------------------------------------
阿里云查看本服务器 公网ip地址 命令
curl httpbin.org/ip
网友评论