Linux常用指令

vi 命令:

清空整个文本文件的内容:ESC命令模式下,gg    dG, 两个命名即可清空文本文件中所有内容;shift :  ,wq 保存退出;

 

清空某个文件夹内的内容: rm -r  folderName ;控制台会提示你,是否删除某个文件,输入y,则删除,会要求一个一个确认;最后还会询问是否删除文件夹本身,输入n;

 youtube-dl显示指定格式的视频,然后下载指定格式的视频:

youtube-dl -F 'http://www.youtube.com/watch?v=P9pzm5b6FFY'

youtube-dl -f 18 "https://www.youtube.com/watch?v=OvMQnLLykOE"

 

Check running services on Linux 

 

5 Ways to Empty or Delete a Large File Content in Linux 

参考资料:《he Linux Command Line: A Complete Introductionhttps://b-ok.cc/book/3704056/43b3c7

posted @ 2019-03-29 13:47  海尔卡特  阅读(142)  评论(0编辑  收藏  举报