*nix – check disk space

If you’ve tried to use ls -lh to get the size of a directory and it’s content, you’ll have found that it doesn’t give you what you were hoping for. One method to get the size of a directory, including files, sub-directories and their files is to use du (disk usage). du -sch The switches in the above example are:-s(–summarize)displays […]

SnipIT No 7: Change colour when using “ls”

SnipIT is a series of short blogs containing useful information in an easily digestible format. Listing the files and directories in a PuTTY session when connected to Red Hat recently, I realised how bad the contrast is between the default dark blue on black. To change this to something more usable, we can edit the bashrc file. $ vi ~/.bashrc […]

SnipIT No 1: Checking Permissions in Solaris

SnipIT is a series of short blogs containing useful information in an easily digestible format. First up; How to check permissions of files and folders in Solaris. This may seem obvious to some but to new-comers it should prove useful. File Permissions ls -al The a option lists all the files in the directory, including hidden files (those that start […]