command-line-quick-reference
command-line-quick-reference copied to clipboard
quick reference on command line tools and techniques for the people with limited time
`tree` command can be useful when recursively list file contain directory.
update _the list returned will satisfy the conditions used in find command._ to - conditions/filters can be defined for ```find``` command. find will will return only those files and directories...
less -N file.txt cat -n file.txt
option | description --- | --- !! | repeat last command !* | All arguments of the last command !^ | first argument of last command !$ | last argument...
refer: https://tldp.org/LDP/abs/html/string-manipulation.html
``` if [ condition1 ]; then command1; elif [ condition2 ]; then command2; else command3; fi ``` There are competing ideas for how this kind of thing should be structured....