Does rm, cp, mv etc work alphabetically?

Q. Is rm -rf * removes the files in alphabetically? Simple answer is yes, the files/folders are removed in alphabetic sequence. I ran strace command to support my answer. I have 4 files in my dir as shown below [email protected]:~/scripts/temp/temp$ ls -lrt

Read More

25+ Awesome Linux/Unix command chaining examples

Command chaining is a concept to execute two or more commands in one execution to increase. productivity Reduce system resource usage (In some cases) Short and sweet codes. These are supported by almost every shell we know. Today we will learn how

Read More

Linux Bash Shell auto completion and Wild cards

Bash is one of the best shell available in Linuix and Unix OS. This is due to its capabilities such as history shortcuts Auto completion and file  wild cards command chaining We already discussed about history and shortcuts in some older posts.

Read More

Linux Bash Shell short cuts

This is a post on improving your productivity when you are working with BASH shell/terminal. BASH shell is having many inbuilt capabilities such as history, command chaining and BASH shortcut. In this post we will see what are BASH shortcuts and their usage. Frequently used shortcut

Read More

How to write shell script in Linux professionally

How to write a shell script professionally and why to write it? Most of the time when we work and write shell script we write on the go not considering others who want to understand it. Suppose you write a shell script

Read More

Display date and time for commands executed in linux

We can always set time to the commands showed in history command. Why we require to set time for this? This is totally a security measure and used for troubleshooting/fingerprinting a security threat. history command sample output before setting this variable. 466 

Read More

banner