How to list files with ls that start with letters in the filename and then have numbers.

This is how to list some filenames that start with letters and have some numbers in the filenames. This is a very useful Linux trick. jason@Yog-Sothoth » ~ » $ ls -l [A-Z]*[0-9]*.wav -rw-rw-r– 1 jason jason 4399528 Oct 25 2017 gqrx_20171024_232212_33050000.wav -rw-rw-r– 1 jason jason 2378004 Oct 29 2017 gqrx_20171029_001507_126954900.wav -rw-rw-r– 1 jason jason … Read more

How to use the sed command to filter text files in Linux and other useful shell tricks for the Linux command line.

Using sed to filter a text file and change a specific character for another. In this case the ” character becomes the ‘ character using the magic of the sed command. Since I am using a character the shell also uses I have to escape it out so the command will work. This can make … Read more

How to copy text from the terminal to the clipboard.

To copy text to the clipboard from the Linux command line in Xorg, we need to install a nice utility called xclip. This will allow us to copy text from the terminal to the clipboard. Install xclip. jason@jason-desktop:~$ sudo apt install xclipjason@jason-desktop:~$ sudo apt install xclip Then create the bash alias we need for this … Read more

Debian 8 still stores WIFI passwords in plain text.

The /etc/NetworkManager/system-connections directory in Debian and Ubuntu stores files that are named after the WIFI networks you have connected to. These contain the passwords for the wireless networks that your machine has connected to. Here is a sample file. [connection] id=detportal uuid=539c7711-95ba-4f0a-8797-33d32ec779d7 type=802-11-wireless   [802-11-wireless] ssid=detportal mode=infrastructure security=802-11-wireless-security   [802-11-wireless-security] key-mgmt=wpa-psk psk=detportal   [ipv4] method=auto … Read more

C code that will open a file and print the contents to the terminal.

This code will print the contents of a file to the terminal. Feel free to use this in your own projects if you wish. #include <stdio.h>   #define MEM "/proc/diskstats"   int main (void) {   FILE *g; char Meminfo[40]; g = fopen(MEM, "r"); if(!g) { printf ("Sorry, I cannot open: %s.\n", MEM); } else … Read more

How to install Sublime text in Linux Mint 15 with a PPA.

The Sublime text 2 editor is an amazing new text editor for Linux and Windows that will make your text editing duties much easier. Firstly, you need to add the PPA for Linux Mint 15/Ubuntu 13.04. sudo add-apt-repository ppa:webupd8team/sublime-text-3sudo add-apt-repository ppa:webupd8team/sublime-text-3 Then update the package repositories to enable the apt application to find the new … Read more

How to filter text with the sed command. This is useful for various shell tricks.

Using wildcards on the Linux command line This is a standard listing of files with wildcards in the bash shell. homer@deep-thought ~/Documents $ ls *.wad basenew.wad cc4-tex.wad city-heat.wad dark.wad doom.wad plutonia.wad scythe2.wad SKYTEST.wad brick.wad cchest4.wad consoleCopy.wad doom2.wad hexen.wad RIII.wad scythex.wad SODfinal.wadhomer@deep-thought ~/Documents $ ls *.wad basenew.wad cc4-tex.wad city-heat.wad dark.wad doom.wad plutonia.wad scythe2.wad SKYTEST.wad brick.wad cchest4.wad … Read more

Themes for the Cinnamon desktop and some thoughts on Linux text editors you should try.

If you want some quality themes for the Linux Mint Cinnamon desktop; then this website is perfect: http://cinnamon-spices.linuxmint.com/themes. The Cinnamon desktop is quite a stunning desktop for the Linux Mint 14 distribution; but if you want something simpler; the new MATE desktop will be better suited to you. I tried the MATE desktop out with … Read more

Windows 8 machines burdened with crapware and Ubuntu a good alternative.

The Windows 8 launch is past and there are stories floating around that the computers running this operating system are polluted with crapware that slows down the machines and provides no real benefit. When I bought my ASUS eePC netbook; it was running Windows XP Professional with the extra ASUS crapware installed that is supposed … Read more

Using the text console in Linux Mint 13. How to use Linux the proper command-line way.

Using the text console in Linux Mint is very easy. Access it by pressing Ctrl-Alt-F1. Get back to Xorg by pressing Alt-F9. Some Linux distributions use the virtual terminal tty7 as the one reserved for Xorg, but this can vary. You may open many virtual consoles by pressing Alt-2, Alt-3, or pressing Alt and using … Read more