Easily get Linux system information with simple utilities.

Get RAM information with the Linux command line and inxi. 4.4 Thu May 02 jason@Yog-Sothoth 0: $ sudo inxi -m 1) All commands run with root privileges are always dangerous. 2) Never run commands on an environment you are not willing to destroy, or able to restore. 3) Do not…

Read More

Set a very nice Linux shell prompt and very useful aliases.

This addition to your .bashrc file will give you a very nice shell prompt and colorful output of the ls command. This looks very stylish indeed. # set variable identifying the chroot you work in (used in the prompt below) if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ];…

Read More

Miscellaneous Linux commands. Some useful tips for the Linux BASH prompt.

The ldd command will print out a list of all libraries that an executable is linked against. This is the output for a simple “Hello World” command. 20:15:31 tux@linux-v415 ($ ldd ./a.out linux-vdso.so.1 => (0x00007fff171ff000) libc.so.6 => /lib64/libc.so.6 (0x00007fe56ef58000) /lib64/ld-linux-x86-64.so.2 (0x00007fe56f2e8000) 20:15:49 tux@linux-v415 ($20:15:31 tux@linux-v415 ($ ldd ./a.out linux-vdso.so.1 =>…

Read More

Get information about your Macintosh machine using the command line.

Get the current status of your battery with this command. deusexmachina:~ jason$ sudo systemstats | grep "Battery Power" Battery Power: -8095 mW (-15.5 %/hr) Battery Power: -8034 mW (-15.6 %/hr) Battery Power: -6774 mW (-13.3 %/hr) Battery Power: -8080 mW (-15.3 %/hr) Battery Power: -7866 mW (-15.3 %/hr)deusexmachina:~ jason$ sudo…

Read More

How to play a movie with mpv in your terminal window.

This command will display an image in your terminal. Very useful for viewing images without using an external image viewer. mpv –no-config –pause –vo=tct https://stallman.org/rms.jpgmpv –no-config –pause –vo=tct https://stallman.org/rms.jpg Play a movie in your terminal window with mpv. 4.4 Thu Nov 29 jason@Yog-Sothoth 0: $ mpv –no-config –vo=tct fc4.mp44.4 Thu…

Read More

Get nice system information on Macintosh OS with the command line.

Get information about apps installed on your Macintosh PC with the lsappinfo command. Use grep as shown below to find out information about a certain app, i.e Firefox in this case. deusexmachina:~ jason$ lsappinfo | grep Firefox 24) "Firefox" ASN:0x0-0x2a02a: bundle path="/Applications/Firefox.app" executable path="/Applications/Firefox.app/Contents/MacOS/firefox" 26) "FirefoxCP WebExtensions" ASN:0x0-0x2c02c: bundle path="/Applications/Firefox.app/Contents/MacOS/plugin-container.app"…

Read More

Useful tips for a programmer on a Macintosh machine. Install GCC.

How to install the GCC compiler for Macintosh programming on a Macintosh Air. This simple command will install the GCC compiler collection and the make command on a Macintosh. This enables programming console apps on a Macintosh machine. These instructions are for Macintosh OSX Sierra. May not be the same…

Read More

How to get information about a window on your Linux desktop.

Getting detailed information about a window on your Linux desktop is very easy. The Xwininfo command is very useful for getting this information. Run the command and then click a window to get detailed information about a window. jason@jason-desktop:~$ xwininfojason@jason-desktop:~$ xwininfo Absolute upper-left X: 498 Absolute upper-left Y: 47 Relative…

Read More

How to change the Virtual Terminal font in Debian and Ubuntu easily.

To change the font in the Virtual Terminal in Debian or Ubuntu/Linux Mint, run this command. sudo dpkg-reconfigure console-setupsudo dpkg-reconfigure console-setup This lets you select the various character sets and fonts to customize your virtual terminal. jason@jason-desktop:~$ sudo dpkg-reconfigure console-setup [sudo] password for jason: Your console font configuration will be…

Read More

Get to runlevel 3 in Linux Mint 18.1

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…

Read More

How to add a Red Hat Linux 7.2 subscription after installation.

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"[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…

Read More

Some interesting and useful Linux commands and BASH tricks.

A useful awk implementation to count the number of entries in the /etc/passwd file. john@deusexmachina:~$ sudo awk -F: ‘{ print $1 }’ /etc/passwd | wc -l 34john@deusexmachina:~$ sudo awk -F: ‘{ print $1 }’ /etc/passwd | wc -l 34 And the quintessential “Hello World” in Awk. john@deusexmachina:~$ awk ‘BEGIN {…

Read More

Change the background color of the terminal in Linux Mint.

To change the background color of the Linux Mint terminal, access the Profile Preferences like this. Then navigate to this tab to change the background color of the terminal window. This way, themes may be chosen, or a custom color may be chosen to set just the color you wish…

Read More