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 total 0 -rw-rw-r– 1 surendra surendra 0 Oct 10 23:55 c.txt -rw-rw-r– 1(…)

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 to use different command chaining operators available for us in an easy way.(…)

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. Today we will see how we can use BASH Shell to do auto(…)

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 keys Ctrl+a – Bring back the courser to start of the bash prompt(…)

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 and did not given any info what that shell script do, all your(…)

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  df -h 467  df 468  exit 469  nfsstat 470  find / -iname *.ppt(…)