Table of Contents
1 使用du命令查看一级子目录存储空间大小
ls | xargs du -sh
2 回到上次执行的目录
cd -
3 查看ASCII码表
man ascii
4 取得运行中进程的输出
~$ touch log ~$ gdb -p 22499 (gdb) p close(1) # This closes the stdout of the running process (gdb) p open("home…/log", 1) # This will open the log-file with OWRITE (gdb) c
5 tee
名称:从标准输入中读取并同时写入到标准输出和指定的文件上
本文介绍了几种常用的Linux命令技巧,包括使用du命令快速查看一级子目录的存储空间大小、通过cd-命令返回上次所在的目录、利用man ascii查看ASCII码表、获取运行中进程的输出以及使用tee命令将标准输出同时写入文件。
7万+

被折叠的 条评论
为什么被折叠?



