Notes on shell and linux commands

  • If you want to output all standard output and standard error to a file, use & to indicate all 1 and 2 information, eg:
    find /etc -name passwd &>find.all or find /etc -name passwd >find.all 2> &1

  • find files that do not contain content
    find .-name'lsprocess.sh.*' | xargs grep -L'cap_dac_override,cap_dac_read_search,cap_sys_ptrace'

Guess you like

Origin blog.csdn.net/weixin_40455124/article/details/111714881