To get to runlevel 3 in Linux Mint, press the Control-Alt-F2 key combination and login at the virtual terminal, then run this command to shut down the login manager. sudo service mdm stopsudo service mdm stop Then you may use the Linux Mint virtual terminal instead of the desktop if you wish. Just run this …

To add a subscription after installing Red Hat Enterprise Linux 7.2, type this command as root. [[email protected] 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. [[email protected] jason]# subscription-manager refresh And finally, run this command to …

The lsb_release -a command will print the Ubuntu version to the terminal. This is how you find out information about your Ubuntu installation. [email protected]:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.2 LTS Release: 14.04 Codename: [email protected]:~$ 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. [email protected]:~$ sudo hostname netbook.local Then edit the /etc/hosts file to set the new hostname. [email protected]:~$ 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 …