To add a subscription after installing Red Hat Enterprise Linux 7.2, type this command as root. [root@localhost jason]# subscription-manager register –username USERNAME –password “PASSWORD” This will setup your Red Hat subscription. Then enter this command. This will refresh all of the information on your machine. [root@localhost jason]# subscription-manager refresh And finally, run this command to …

The Caps Lock key may be toggled using the command line. The xdotool utility will do this for you. Firstly, install the utility. jason@jason-virtual-machine ~ $ sudo apt install xdotooljason@jason-virtual-machine ~ $ sudo apt install xdotool Then toggle the caps lock key with this command. jason@jason-virtual-machine ~ $ xdotool key Caps_Lockjason@jason-virtual-machine ~ $ xdotool key …

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 …

This simple little script will print an updating clock in the terminal. #!/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’ And finally, this prints the time using blocky characters. #!/bin/sh watch -t -n 1 …

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:~ …

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 …