Shell Script

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 »