Category: Ubuntu

  • ZFS on Linux (Ubuntu) – arcstat.py is now available! How do you run it?

    ZFS on Linux (Ubuntu) – arcstat.py is now available! How do you run it?

    UPDATE: This information is now out of date, see new post here.   One very handy ZFS-related command which has been missing from the standard ZFS on Linux implementation has been arcstat.py. This script provides a great deal of useful information about how effective your adaptive read cache (ARC) is.   ZFSoL 0.6.2 includes it,…

  • Ubuntu Forums hacked, passwords + emails taken – change yours if you are a user!

    Ubuntu Forums hacked, passwords + emails taken – change yours if you are a user!

      On the 20th July (US time) the Ubuntu forums were hacked and local usernames, email addresses and passwords were taken. The passwords aren’t in plaintext but regardless, change yours if you are/were a user!

  • Ubuntu: How to check the samba version

    Ubuntu: How to check the samba version

      To check the version of Samba that you are running, use the smbstatus command. The first line is the version, which should look something like:   Samba version 3.6.3   If you want to see just the version without the rest of the smbstatus information, you can run:   smbstatus –version   Much less…

  • Where is the crontab in Ubuntu?

    Where is the crontab in Ubuntu?

      If you’re looking to make a copy of a user’s crontab as a backup or just to view it without using the crontab editor, you can locate it at:   /var/spool/cron/crontabs   Each user’s crontab will be in this directory in a file named as their username (e.g. root). If you’re working with a…

  • Ubuntu: Where is the default tmux config file?

    Ubuntu: Where is the default tmux config file?

      This is a tricky one to find, mainly because by default it doesn’t exist. You create your custom configuration file in your home directory in a hidden file like so:   ~/.tmux.conf   …and add your desired configuration changes to that file. So, if you were the user bob, your config file would be…

  • Ubuntu: How to restore your files from a tape

      This is just like extracting a regular tar archive:   tar -xvf /dev/[path to tape] [directory or file to restore]   e.g.:   tar -xvf /dev/st0 backups   This will restore the “backups” file/folder to the current working directory. To check your current directory, you can use:   pwd   to make sure that…

  • Ubuntu: Killing a tmux pane

    Ubuntu: Killing a tmux pane

      Opened one too many panes in tmux? You can kill one by selecting it and doing the following:   [prefix] x   By default the prefix is ctrl+b – so in this case you would enter ctrl+b then x.   Pane killed!

  • Ubuntu: How to change tmux’s ctrl+b binding to ctrl+a

    Ubuntu: How to change tmux’s ctrl+b binding to ctrl+a

      If you’re used to screen you’ll be in the habit of using ctrl+a, for example detaching a session with ctrl+a then d – if you make the move to tmux it’s ctrl+b then d, which can take some getting used to. Often it’s easier to make tmux get used to you! To change tmux…

  • How to erase a tape in Ubuntu

    How to erase a tape in Ubuntu

      This is another nice and easy one, though it may take a while depending on the size/speed of the tape:   sudo mt -f [/path/to/tape] erase   e.g.:   sudo mt -f /dev/st0 erase   That’s /dev/st(zero) not /dev/st(letter o), in case it’s not clear from the font. This will likely take some time…

  • How to rewind a tape drive in Ubuntu

    How to rewind a tape drive in Ubuntu

      This again uses the mt command, and is nice and easy:   sudo mt -f [path/to/tape/drive] rewind   A common example would be:   sudo mt -f /dev/st0 rewind   Easy done! In the above example it’s st (zero) not st (letter o) – in case it’s not clear from the font.