The Linux and Unix Links: The Symbolic Links versus The Hard Links

A link is a reference to another file, giving the file multiple names and allowing it to be in more locations at once. There are two kinds of links: symbolic links (also known as symlinks or soft links) and hard

3 Usefull Oneliners #2 : find IP address, copy trick, run previous command with different arguments

1. awk trick: Find out a network interface’s IP address: This command displays only the ip of the eth0 interface. ip a s eth0 | grep “inet ” | head -n 1 | awk ‘{print $2}’ | cut -f1 -d’/’

How to change the default internet browser in Ubuntu and Debian

In this article I will show you how to change the default Internet Browser in Debian, Ubuntu, Linux Mint and other Debian based Linux distributions. I will change the default internet browser from Firefox to Konqueror. If you don’t have

Another way to change the default text editor in Ubuntu and Debian

In these articles I have showed you how to change the default text editor in Linux and Unix in all the important shells: bash, zsh, ksh, csh and tcsh. Having your favourite editor as the default one is usefull when

Grep trick: The square brackets in the grepped ps output

I ofter use square brackets in the grepped ps output like: ps -ef | grep [b]ash instead of ps -ef | grep bash. The square brackets are used for eliminating the grep itself in the ps output. Explanation: If you

How to change the CDPATH for the C shells: csh and tcsh

Previously, I have showed you how to set a new PATH for the csh and tcsh shells. Changing the PATH or CDPATH differs from shell to shell. In this article I will show you how to change the CDPATH for

The bash !$ trick: Insert the last argument of the previous command in the current command

The !$ trick works on bash, csh, tcsh and zsh, but does not work on ksh. The !$ trick is very usefull in the Linux and Unix shells. In the Bash shell, the !$ inserts (and expands) the last used

Just Another Symbolic Link Article

This is another symbolic link article. I have previously written a short article on how to create symlink and hard links here. To read the other Unix and Linux link related articles, go here. Symbolic Link: The symbolic links indicate

20 Find oneliners for changing file and folder permissions

In this article I will show you 10 find oneliners, for manipulating the file and folder permissions. 1. Add execution rights for the user to all the files in the current directory: find . -type f -exec chmod u+x {}

10 Bash Tricks Every User Should Know About

In this article I will show my favourite bash tricks. Because I am very lazy, I adore all the dirty tricks that can make my bash usage easier. 1-2 : The PATH and the CDPATH. The PATH and CDPATH are

Support LinuxG via Patreon
Support LinuxG.net on Patreon!
Subscribe

  

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