GreenScreenCraft

“Legacy” UI green screens.  They are smokin’ fast. I do a lot of things from the command line.  It’s just faster.  Some things, like a GUI view of a Git checkin help quite a bit.  But as a Java developer living in a server and configuration world there is nothing better than a good text […]

Linux Tip: List Directories by Size – du

Use the du comand to list your directories by size: user@ubuntu:/boot$ du -hs * 632K abi-2.6.32-21-generic 120K config-2.6.32-21-generic 1.5M grub 7.7M initrd.img-2.6.32-21-generic 164K memtest86+.bin 1.7M System.map-2.6.32-21-generic 4.0K vmcoreinfo-2.6.32-21-generic 3.9M vmlinuz-2.6.32-21-generic In this, ‘grub’ is a directory in the location. This command has a lot of options but usually I am just interested in this.

Linux Tip: Compression – tar and exclude

A lot of times I have to recursively compress a bunch of files and folders so I can ftp them to my local for perusal. When I compress, I do this: tar -cvzf localfolder.tar.gz localfolder And that gives me a tar file of all the zipped stuff in localfolder. To decompress it on the command […]

Linux Tip: CPU Utilization – top

I use the top command when I want to see CPU usage and some other CPU stuff. user@ubuntu:/etc$ top Reminds me of a text version of the processes view in Windows task manager: top – 21:56:18 up 1 day, 1:02, 2 users, load average: 1.12, 0.34, 0.25 Tasks: 134 total, 1 running, 133 sleeping, 0 […]

Linux Tip: Checking Disk Space – df

If you ever need to check disk space on a Linux system its easy, use the df function: user@ubuntu:~$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 20G 4.3G 15G 23% / none 182M 252K 182M 1% /dev none 186M 252K 186M 1% /dev/shm none 186M 196K 186M 1% /var/run none 186M 0 […]

Linux Tip: Readable ls command

Usually out of habit I just do an ls -la command (or dir by accident 🙂 ): user@ubuntu:/etc$ ls -la total 1152 drwxr-xr-x 133 root root 12288 2011-04-03 22:02 . drwxr-xr-x 22 root root 4096 2010-06-21 12:18 .. drwxr-xr-x 3 root root 4096 2010-06-21 07:20 acpi -rw-r–r– 1 root root 2981 2010-06-21 06:22 adduser.conf -rw-r–r– […]

Linux Tip: Figure out if your install is 32 or 64 bit – uname

I can never remember what version of Linux I am running. It’s a pain if you are doing installs and faced with a few different versions of software. And I’m a developer, not an escalator dammit. Just use the uname -a command and here’s how you can figure it out: user@ubuntu:~$ uname -a Linux ubuntu […]