Skip to content

Instantly share code, notes, and snippets.

@xwsg
Last active December 10, 2017 02:36
Show Gist options
  • Save xwsg/55451ef0f8c2b8215ab9d7624e032af8 to your computer and use it in GitHub Desktop.
Save xwsg/55451ef0f8c2b8215ab9d7624e032af8 to your computer and use it in GitHub Desktop.

查看文件的中间几行

# 查看文件的第100-200行
sed -n '100,200p' filename 

nohup使用,后台运行

nohup [command] > [log out filename] 2>&1 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment