Category: *nix

  • *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…

  • More user admin in *nix

    Following on from a much earlier post about user administration in Solaris, I have found a few other tasks that may be fairly common requirements. To change a users login nameusermod -l <new username> <old username>e.g. usermod -l john.knight john.knoght “-l” tells usermod that we want to amend the login name. This is useful if,…

  • 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…

  • SnipIT No 6: Allow HTTP through CentOS firewall

    SnipIT is a series of short blogs containing useful information in an easily digestible format. With a fresh install of CentOS, the firewall prevents http and https traffic. To test that it is the firewall preventing access to the web server disable the firewall: sudo systemctl stop firewalld Then try browsing to the servers IP…

  • SnipIT No 5: Find the version of Apache on a Linux machine

    SnipIT is a series of short blogs containing useful information in an easily digestible format. httpd  is the Apache HTTP server program which can be installed on a Linux server (sudo yum install httpd). To find out which version is running on your system, type http -v at a command prompt when connected to the server.…

  • Configuring and Running Apache on Solaris

    The Apache web server comes with the Solaris 10 operating system but needs some configuration before it can be used. These steps can assist you in getting Apache up and running…. Step 1 Log in as the root user, or another user with root privileges. Step 2: Check the current status of Apache svcs -a…

  • Determine Processor and Memory Information in Solaris

    How can I find out how much RAM is installed in my Solaris server? How do I know how many CPUs/cores are in my Solaris server? These are two questions you may have asked yourself maybe out of curiosity or perhaps to provide information to colleagues. Well, you’ll be relieved to hear that it is…

  • SnipIT No 3: Using “find” in Solaris: Part 1

    SnipIT is a series of short blogs containing useful information in an easily digestible format. find is a useful command in Solaris although it may not always be a straight forward matter using it to get what you want. I have two examples which I use regularly and thought I’d share them with you… 1) List the…

  • SnipIT No 2: Lock/Unlock User Account in Solaris

    SnipIT is a series of short blogs containing useful information in an easily digestible format. When logged in as root you can lock and unlock a user account with the passwd command. Lock an Account passwd -l Unlock an Account passwd -u Confirmation of either change is then shown: passwd: password information changed for

  • 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…