美文网首页
Linux command

Linux command

作者: lonely_smoke | 来源:发表于2020-08-29 09:57 被阅读0次

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

相关文章

网友评论

      本文标题:Linux command

      本文链接:https://www.haomeiwen.com/subject/snpdsktx.html