Home > Code, Linux > Some Nice Commands

Some Nice Commands

So I was just Stumbling along last night, and I found some very interesting commands at Unixy. The commands of interest to me were screen (and consequently, byobu), and tload.

Even though it was dislocate that was being advertised, it wasn’t on my Linux Mint by default, and so I went for the next best thing, which was screen that the article had mentioned briefly. I’m not too pushed about removing windows from others, as, like most users, I live in the twenty-first century, I have multiple windows. I use Xmonad for crying out loud. But what Xmonad doesn’t give you (and which you never really miss until you don’t have it) is a system clock! Date, fine, I’ll check my phone. Task switcher? I generally give each application their own workspace. But you really miss having the system clock on your “HUD”. Until now I had to make do with piping an xmonad-clock program to dzen2, but it really wasn’t cutting it, least especially since it covered the topmost toolbars in my GUI windows and the first line of my bash windows. So screen is a real breath of fresh air. Not only does it show the time and date compactly at the bottom of your bash prompt, it also tells you the distro you’re running, how many packages you can update, your system load, how much you’re taxing your CPU(s), how much memory you have in total, and how much of it is in use! Whew!

With all that you’d hardly need tload, a nifty little tool that outputs your CPU usage every n seconds, where n can be set with the -d switch. My default usage of the command is `tload -d 1 -s 20`. This updates the “graphical” usage every 1 second (the highest frequency you can set), on a scale that will fit most terminals. My alias for it in my ~/.profile script is `alias qtload=”tload -d 1 -s 20`, where q simply stands for “quick”.

So the setup I use now is (at college anyway):

Workstation 1: Firefox
Workstation 2: Emacs (with vertical split screen, generally running shell on right)
Workstation 3: bash (now with added screen)
Workstation 4-7: General purpose
Workstation 8: tload
Workstation 9: xmonad shell

Categories: Code, Linux
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: