Year: 2018

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

  • Rename logical & physical MSSQL files

    This post will provide guidance on how to amend the logical and physical file names of a MSSQL database. When a copy of a database is restored as a new database, the logical file names will remain the same as the source database. Firstly, check the current logical and physical file names: USE master GO…

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

  • Puppet – Introduction

    Puppet – Introduction Puppet is a configuration management tool which can be help to address the following challenges: Deploying servers with a consistent configuration. Addressing inconsistent configurations (config drift). Application deployment. Automation – as part of CI & CD, get it down faster! Before the likes of Puppet and Chef, SysOps typically would have a…