Tag: Linux

Some quick APT commands

Advanced Packaging Tool (APT) is used by Debian system to manage package installations. Following are some quick commands: Some common commands that can be used with APT: Installing packages Removing…

Linux Redirection

Linux processes generally take input from standard input (keyboard), write output to standard out (screen) and may write to standard error if there are any error message which need to…

Bash: using positional parameter

Positional parameters are used to pass arguments to a command line application. This post shows you how to used positional parameter in bash. On your terminal, type the following command:…

for loop in bash

For loops in bash a similar to commonly used languages such as Perl and C. bash loops do not use curly brackets for body demarcation. Example 1 Loop start from…

Linux: Copy all files with exception

Sometime we need to copy entire directory with the except of a few files or a specific directory. This could easily be accomplished with a regular expression as follows: Note:…