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:

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:

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:

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: