This trick can be useful in case we are the only user using the same machine. Being asked each time for a sudo password can be really grueling.

  1. Open the sudoers file :

    sudo visudo
  2. add this line :

    sc ALL=(ALL) NOPASSWD: ALL

    This will allow user "sc" to run all commands without a sud...

Suppose we are asked to install a Debian based flavor on an old laptop or PC but we are unsure about the type of disk that is used. One solution could be the use of a bootable live usb to check performance and gather system specifications prior to installation. This post will walk us through helpf...

7. Working with strings

7.1 Case insensitive matching

The i or I as a flag for the substitution command implies case-insensitive substitution. Here, the pattern is lowercase and the s command will substitute to upper case ignoring case.

sed  -n 's/victor hugo/VICTOR HUGO/pi' books.log

Th...

1. Stream Editor : sed

sed (Stream Editor) is a robust command-line tool utilized in Linux and Unix-like operating systems for the purpose of parsing and modifying text.

It operates as a non-interactive text editor, which indicates that it automatically processes text according to a predefined s...

awk

1. Awk, gawk, mawk, nawk

Awk is a kind of programming language designed for advanced text processing. Awk needs an input, performs some actions and delivers the result to standard output.

The GNU implementation of awk is called gawk, but for the end-user calling awk interpreter is transparent an...