2 Bash tricks: TAB-TAB and Case Insensitive Completion

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

3 Ways to change the MAC address in Linux and Unix

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

How to install the Microsoft Core Fonts on Debian, Ubuntu or 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

The Unix and Linux skeleton directory: /etc/skel

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

3 Usefull Oneliners #1 : find duplicate UIDs, find the package a file belongs to, create a mkdir cd function

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 $

Bash trick: Reverse-i-search

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

3 Text Formatting Tricks: remove duplicate lines, remove empty lines, convert upper cases to lowers

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

Find Trick: How to find and delete the empty directories in a directory tree

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

File extensions in Linux and Unix

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

How to cd into a directory only by typing the directory name

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

Support LinuxG via Patreon
Support LinuxG.net on Patreon!


Subscribe to get the latest Linux news and how to guides directly on your e-mail!