This post will continue from Useful Linux Commands: Part I and list the commands which I found useful in Linux environment.
Must mention the greatness of the Linux command line tools especially its various thoughtful switches/options. It makes the life of developers very easy and saves a lot of time. More importantly it helps people like me to continue to be lazy (did I say smart!?!)..
- List the file names which have a pattern
- grep -rl "my_pattern" "my_path"
- grep -rl "couldn't read file" */*/my_log
- tree -L 2 "my_path"
- tree -L 2 ./
- tree -L 2 /home/$USER/some_dir