In this article I will show you two bash inputrc tricks. The first one is: set show-all-if-ambiguous on. Add this to your ~/.inputrc file because it is very usefull. When pressing TAB for command completion, all the matches will be…
In this article I will show you two bash inputrc tricks. The first one is: set show-all-if-ambiguous on. Add this to your ~/.inputrc file because it is very usefull. When pressing TAB for command completion, all the matches will be…
There are 3 ways (that I know of) to temporary change the Hardware address (MAC address) in Linux and Unix systems. The MAC address can be temporary changed with ifconfig, iproute2 or the macchanger tool, in Debian, Ubuntu, Linux Mint…
There are some situations when you need to use the Microsoft Times New Roman font, for example on your Debian, Ubuntu, Linux Mint or any other Debian based Linux distribution. To install the Microsoft Fonts in Linux, you have to…
What is the /etc/skel directory? The /etc/skel directory contains files and folders that will be copied in the new user’s home directory (login directory), when that user is created with useradd or other commands. The skeleton directory, /etc/skel, allows the…
1. awk trick: Find duplicate User IDs (UIDs), from the /etc/passwd file. This command will display only the duplicate UID, and nothing more: awk -F: ‘{print $3}’ /etc/passwd | sort | uniq -d $ sudo useradd -u 999 mike7 $…
The bash reverse-i-search is very usefull when needing to lookup for a command in the history. Press Ctrl – R and you get this: (reverse-i-search)`’: Type parts of the command you need to find and bash will give you the…
In this article I will show you 3 basic text formatting tricks. It is very usefull to know how to manipulate text files. Remove repeated lines in a file: I have this file: $ cat textfile sample line1 sample line1…
In this article I will show you how to delete the empty directories from a directory tree with the find command. I will use the find command, combined with rmdir. The rmdir command deletes only the empty directories and doesn’t…
On Unix and Linux systems, the file extensions are a matter of convention. They are used to help the user choose a program to read/open the file. A few extension conventions: Usually, the regular files have extensions: file.txt, file.pdf. The…
In this article I will show you how to cd into a directory by only typing the directory name. To do this, you have to activate the autocd. For bash: shopt -s autocd $ ls -ld naboo drwxrwxr-x 2 razvan…