How to find the Ubuntu version using the command line terminal.

The lsb_release -a command will print the Ubuntu version to the terminal. This is how you find out information about your Ubuntu installation. ubuntu@ip-172-31-20-16:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.2 LTS Release: 14.04 Codename: trustyubuntu@ip-172-31-20-16:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.2 … Read more

Create a cool looking clock in your terminal.

This simple little script will print an updating clock in the terminal. #!/bin/sh   watch -t -n 1 ‘date +%H:%M:%S | figlet’#!/bin/sh watch -t -n 1 ‘date +%H:%M:%S | figlet’ This version will print a cow that tells you the time. #!/bin/sh   watch -t -n 1 ‘date +%H:%M:%S | cowsay’#!/bin/sh watch -t -n 1 … Read more

Useful Macintosh OSX terminal commands to get information about your iMac.

The mount command shows information about your mounted partitions on your machine. iMac305:~ admin$ mount /dev/disk0s2 on / (hfs, local, journaled) devfs on /dev (devfs, local, nobrowse) map -hosts on /net (autofs, nosuid, automounted, nobrowse) map auto_home on /home (autofs, automounted, nobrowse) map -fstab on /Network/Servers (autofs, automounted, nobrowse) /dev/disk0s3 on /Volumes/Scratch (hfs, local, journaled)iMac305:~ … Read more

More useful shell tricks for bash. These are very useful tricks for any Linux user.

This sed trick will filter out the unwanted characters and leave only the letters ‘A’. homer@deusexmachina ~ $ echo "###AAA" | sed ‘s/###//gi’ AAAhomer@deusexmachina ~ $ echo "###AAA" | sed ‘s/###//gi’ AAA This is how to re-bind the annoying CAPS-Lock key to Esc. This can give that key a new use. xmodmap -e ‘clear Lock’ … Read more

How to change the hostname on an Ubuntu or Linux Mint system with the command line.

Changing the hostname on a Linux system is very easy indeed. Use this command to set a new hostname. homer@homer-eME730:~$ sudo hostname netbook.local Then edit the /etc/hosts file to set the new hostname. homer@homer-eME730:~$ sudo vim.tiny /etc/hosts And edit it to the new value. 127.0.0.1 localhost 127.0.1.1 netbook.local # The following lines are desirable for … Read more

How to disable the caps lock key permanently on Linux Mint and Ubuntu.

The caps lock key on Linux is very annoying when hit accidentally. Especially when you are typing a password. This simple command will disable the key permanently. homer@deusexmachina ~ $ setxkbmap -option ctrl:nocapshomer@deusexmachina ~ $ setxkbmap -option ctrl:nocaps If you put this in Startup Applications which may be found under System-Preferences-Startup Applications, the caps lock … Read more

How to get the weather forecast for your US postcode using the weather command.

Getting the weather forecast for your US postcode is very simple when you are running either Ubuntu or Linux Mint. The weather-util package contains the weather command that makes this possible. Use this command to install the weather-util package. sudo apt-get install weather-utilsudo apt-get install weather-util This is the output that you get when you … Read more

The Linux console in danger of being killed in favor of a userspace option instead?

There are plans afoot to move the Virtual Terminal on Linux to userspace instead of it being a kernel level application. But the main strength of the Virtual Terminal is that it is very reliable and you can always rely on it when your Xorg installation has crashed with an error. This is why we … Read more

The Ubuntu phone Linux distribution will come with a terminal application.

The new Ubuntu phone Linux distribution will come with a terminal application. This means that users of a mobile device will be able to use the bash shell on their mobile device to use various networking commands on the phone as well as other useful Linux commands that make the Linux shell so powerful. Hopefully … Read more

Using the text console in Linux Mint 13. How to use Linux the proper command-line way.

Using the text console in Linux Mint is very easy. Access it by pressing Ctrl-Alt-F1. Get back to Xorg by pressing Alt-F9. Some Linux distributions use the virtual terminal tty7 as the one reserved for Xorg, but this can vary. You may open many virtual consoles by pressing Alt-2, Alt-3, or pressing Alt and using … Read more

Using the command-line on Google Android, and other useful apps.

This terminal emulator application for the Google Android operating system allows the user to execute various commands on their Android devices. The command set is fairly restricted, but the ability to access the Linux command line on Android makes up for this. You may use the cat command to view the contents of files such … Read more