A one-liner that will list only the mounted removable drives on your system.

This command will only list the mounted removable drives on your Linux system. The ones under /dev/sd*. This is very easy to use. 4.4 Mon Jan 13 jason@Yog-Sothoth 0: $ cat /etc/mtab | grep /dev/s[a-f]/* /dev/sda2 /media/jason/Seagate\040Expansion\040Drive fuseblk rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 0 0 /dev/sdb4 /media/jason/My\040Stuff fuseblk rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 0 04.4 Mon Jan 13 jason@Yog-Sothoth 0: $ cat /etc/mtab … Read more

Very useful Linux configurations for setting up a desktop.

IceWM configuration fileUseful Linux CommandsVery Verbose ps commandBlackbox ThemeGNU/Linux CD Burning: (Updated! for Debian Linux 6.0.)CD Burning with BraseroWriting Ghost Images to CD IceWM configuration file My ICEWM preferences file. from $HOME/.icewm/preferences. This file has a nice friendly time format and a good Win95 styled theme. This IceWM configuration file will give you a familiar … Read more

Very cool Linux scripts I have found on the Internet.

A collection of nice Linux scripts I have found on the Internet. Nice pipes terminal screensaver, this is a nice addition to your Linux terminal emulator. https://github.com/pipeseroni/pipes.sh. A collection of very useful MPV user scripts. https://github.com/mpv-player/mpv/wiki/User-Scripts. use Byzanz to capture your Linux desktop to a file for a certain duration. https://github.com/ryanoasis/public-bash-scripts/blob/master/screen-capturing/byzanz-screencapture-monitor1.sh. A nice packet capture … Read more

Nice commands on Macintosh to keep track of network usage.

The Mac OSX operating system has a lot of very useful commands for keeping track of network usage. Here is a very nice one. The nettop command. As you can see, this shows a constantly updating display of network usage on Mac. This is very useful for watching network throughput in real time. Especially, if … Read more

Very old but interesting UNIX and Linux documentation.

Very old, but precious UNIX documentation from the 1970`s. These would be very interesting reading for someone interested in UNIX. 1972 UNIX programming manual. https://www.tuhs.org//Archive/Distributions/Research/1972_stuff/unix_2nd_edition_manual.pdf. Tmg compiler-writing language manual. https://www.tuhs.org//Archive/Distributions/Research/1972_stuff/tmg.pdf. UNIX Programmers manual November 1971. https://www.tuhs.org//Archive/Distributions/Research/Dennis_v1/UNIX_ProgrammersManual_Nov71.pdf. UNIX Kernel Subroutine Descriptions March 1972. https://www.tuhs.org//Archive/Distributions/Research/Dennis_v1/Kernel_Subroutine_Descriptions_Mar72.pdf. Intro on how manual pages are laid out in UNIX. 1971. https://www.tuhs.org//Archive/Distributions/Research/Dennis_v1/manintro.pdf. … Read more

how to generate long random numbers with the Linux command line.

This simple command prints out a long random number string from /dev/urandom. jason@Yog-Sothoth » img » $ tr -dc "[:digit:]" < /dev/urandom | head -c 64 ; echo 9958048462925775253231939134565711861924198983498274782350446110 Do it this way to remove the newline after the output. This would be good for use in a script. jason@Yog-Sothoth » img » $ tr … Read more

Checking /var/log. How to best find good information about your system.

Checking the /var/log files is very important. This can show you a lot of information about what is happening with your Linux system. The below command shows how to get a list of previously installed programs on a Debian based system. jason@Yog-Sothoth » ~ » $ grep install /var/log/apt/history.log Commandline: apt install nethogs Commandline: apt … Read more

Very useful ways to create wildcards with the Linux shell.

This is an example of a wildcard, using the [0-9] and [A-Z] wildcards to look for numbers and capital letters. deusexmachina:Documents jason$ ls -hula [A-Z]rma[0-9]* -rwxr-xr-x 1 jason staff 1.7G 5 Mar 20:14 Arma3_x64_2017_11_13_21_50_20_373.avi -rwxrwxrwx 1 jason staff 1.2G 28 Jun 14:04 Arma3_x64_2018_01_04_15_29_53_844.avi -rwxrwxrwx 1 jason staff 1.0G 4 Jan 16:13 Arma3_x64_2018_01_04_15_32_03_159.avi -rwxrwxrwx 1 jason … Read more

Very useful tips for all Linux users. Good to know for anyone using Ubuntu or Mint.

There are many ways to list directories and sort the results by size. I have just found another way. Use the ls command with the -S parameter. This sorts files by size. Very useful way to get the largest files in a certain directory. Linux has so many varied methods of listing files, it is … Read more

Search your Linux machine for information about a certain package.

To find information about a certain package on a Linux machine, the man command is very useful, but it does not show all man pages that could contain valuable information. The apropos command is what is required to find all pertinent information. This example below shows how to use this command to find all manual … Read more

Finding the largest file in a directory and other cool Linux commands.

To find the largest file in a directory; use the du command and this will return the information you are after. Using the pipe symbol to send the text through to the head command will allow us to only return the one file we are interested in. jason@jason-desktop:~/Documents$ find . -type f -exec ls -al … Read more

How to manipulate Xorg windows with a terminal command.

The Windows in an Xorg session may easily be manipulated with this simple utility. Xdotool. This is a terminal utility to manage Xorg windows. Firstly, install this simple utility. jason@jason-desktop:~$ sudo apt install xdotooljason@jason-desktop:~$ sudo apt install xdotool Then we can resize a MATE Terminal window. xdotool search –onlyvisible –classname "gnome-terminal" windowsize %@ 500xdotool search … Read more

Using the chmod command to change file permissions on a UNIX/Linux system.

Using the chmod command to change file permissions on a UNIX/Linux system. -rw-rw-r– 1 john john 203 09-02-12 07:16 pm out.out-rw-rw-r– 1 john john 203 09-02-12 07:16 pm out.out This file listing detail shows the information about the current file. The listing -rw-rw-r– shows the permissions for user, group and world. In this example, the … Read more

The Midnight Commander file manager for Linux is indispensable for any Linux user.

The Midnight Commander file manager for Linux is indispensable for any serious Linux desktop or command line user. The ability to quickly copy or move files from one place to another and edit source code is amazing. Files can be copied between panes with the F5 key. F6 to move files. F8 will delete them. … Read more

How to install a Linux version of the SGI UNIX desktop on Fedora 25.

I just installed the Linux version of the SGI desktop on my Fedora 25 Linux machine. This was not too hard either. Download a copy of the installation script from here: http://www.maxxinteractive.com/site/?page_id=51. Run the script as root to download and install the MaXX desktop tarball. [root@localhost Downloads]# sh MaXX-Indy-1.0.0-Installer.sh   >>> Downloading MaXX Interactive Desktop … Read more

Funny and strange UNIX happenings and C programming tips.

Funny and cool Linux tips 1337 or Leet in the UNIX time. -01:44:57– gordon@deusexmachina [~]$ date +%s 1337096699-01:44:57– gordon@deusexmachina [~]$ date +%s 1337096699 The missing days in 1752. I have mentioned this before, but it is worth mentioning again. -01:45:31– gordon@deusexmachina [~]$ cal 9 1752 September 1752 Su Mo Tu We Th Fr Sa 1 … Read more