Ninad Pathak

How to Use the mv Command in Linux

mv report.txt archive/ places report.txt inside the archive directory under its original name. I can’t resist the detail that a successful move removes the old source path rather than leaving a second copy. Follow the source operand to the destination operand to see where the file goes. Compare the paths to tell whether mv renames

How to Use the mv Command in Linux Read More »

The mkdir command in Linux

With mkdir -v -p project/src/assets, each created directory gets its own line. I love how that output makes each new level visible. Choose the directory path you want ready, either beneath your current directory or starting at the filesystem root. See what mkdir creates at that resolved location. What mkdir creates On a GNU Coreutils

The mkdir command in Linux Read More »

The Linux tr Command

With echo ‘mississippi’ | tr -c ‘s’ ‘z’, the final z replaces the line break, so the prompt appears on the same line. I couldn’t resist digging into why tr treats that ending as part of the transformation. Follow tr’s character transformation from standard input to standard output. Choose the operation by deciding which characters

The Linux tr Command Read More »