Tips for using the top command in Linux

Trying to find out what’s running on your machine—and which process is using up all your memory and making things slllooowwww—is a task served well by the utility top. top is an extremely useful program that acts similar to Windows Task Manager or MacOS’s Activity Monitor…. Source: https://opensource.com/article/18/8/top-tips-speed-up-computer

My Favorite Command-Line Shortcuts

I use a shell every day. Almost always, I want to repeat a previous command, or repeat it after a slight modification. A very convenient way is to use arrow-up to get the most recent command back. Another common trick is to type ctrl-r and incrementally search for a previously used command…. Source: https://henrikwarne.com/2018/08/11/my-favorite-command-line-shortcuts/

The Right Way to Get the Directory of a bash Script

When writing bash scripts, you might want to get the directory that contains your script. There are multiple ways to accomplish that. Due to the flexibility of bash, some solutions work in some cases, but not in others…. Source: http://www.ostricher.com/2014/10/the-right-way-to-get-the-directory-of-a-bash-script/

find is making me lose my mind!

Now suppose I want to copy those files into processed/, but… they must get a different filename. No dot! Great, so does this mean that the following might work?… Source: https://www.reddit.com/r/commandline/comments/88lw89/find_is_making_me_lose_my_mind/