Useful VIM tips when using this editor on Linux.

Some very useful VIM tips when using this editor on Linux. When you open a folder instead of a file in VIM, you get a directory listing and this allows you to select a file. Just scroll down to the file you want to open and press ENTER. " ============================================================================…

Read More

Various useful tips for using Ubuntu.

How to check the installed Ubuntu version with the command line. Use this command to check the installed version of the Ubuntu distribution. 4.4 Sat Mar 07 jason@Yog-Sothoth 0: $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS"4.4 Sat Mar 07 jason@Yog-Sothoth 0: $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu…

Read More

Get just the number of processes on your Linux machine.

This command will print the number of running processes on a Linux system. 4.4 Tue Oct 30 jason@Yog-Sothoth 0: $ ps aux | wc -l 2554.4 Tue Oct 30 jason@Yog-Sothoth 0: $ ps aux | wc -l 255 Here is a nice alternative that will work on Ubuntu. The landscape-common…

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…

Read More