Home » Archive

Articles tagged with: Bash

Linux Administration »

[28 Jul 2010 | One Comment | ]

Very simply.
sudo dmidecode –type 17
This gives the following output:
# dmidecode 2.9
SMBIOS 2.4 present.
Handle 0×1100, DMI type 17, 27 bytes
Memory Device

Bash, Linux Administration, Open Source »

[3 Aug 2009 | No Comment | ]

I have previously written about Tilda, a gnome replacement for Yakuake. I had some issues with Tilda so I came to have a nice relationship with Yakauke. It’s important to note though, that there is another reasonable alternative to both Tilda and Yakuake and it’s called Guake.
Guake has some of the basic features of Yakuake but is still lacking in a few things. The main ones for me are:

Yakauke allows you to choose terminal width / Guake takes up fullscreen width. The advantage of this for me is that I …

Linux Administration »

[29 May 2008 | No Comment | ]

Here ’tis
w | awk ‘{a[$1]++}END{for(i in a){print a[i] ” ” i}}’ | sort -rn | head
stumbled on this issue with a HP-UX server we run where the maxusers kernel paramater is set to 600 (512 by default). To change this setting, requires a reboot of the server (something not easily achievable at midday with 600 users logged in). You can change kernel parameters via SAM in HP-UX
This is a slight modification of the 1 liner that sorts your bash history by commands used:
history | awk ‘{a[$2]++}END{for(i in a){print a[i] ” …

Bash, Linux Administration »

[28 Apr 2008 | No Comment | ]

Here’s a simple method of automatically muting your volume overnight and resetting it in the morning. This is especially good for those who use softphones, skype or an IM client that have sound alerts output to speakers.
We are going to use three command line tools for this: aumix, which and cron. We are also only going to set things up so the commands are run under the user account, rather than as root as cron used incorrectly can open up some security issues.
so, to get started try and run:
:~$ aumix
and …