File System Navigation in Linux
What if I forget the exact command name?
No worries! You can often get help by typing a few letters of the command and then pressing the Tab key. This will try to complete the command name for you and show you any options if there are similar commands. You can also use the man command followed by the command name (e.g. man pwd) to see the manual page for that specific command, which will explain what it does and how to use it.
How do I go back and forth between recently used folders?
The history command can show you a list of commands you’ve typed recently, including cd commands for folders you’ve visited. You can then use the up and down arrow keys to navigate through the history and press Enter to run a specific command again.
Can I see what’s inside a folder without going into it?
Yes! The ls (list) command will show you the contents of the current folder. You can also use ls with a folder path as an argument to see what’s inside that specific folder without going there first (e.g. ls /home/username/documents).
What if I accidentally type the wrong command?
Most of the time, you can simply press the Up arrow key to recall the previous command and edit it. Otherwise, you can press Ctrl+C to cancel the current command.
File System Navigation Commands in Linux
Linux offers an alternative to the usual windows and icons. The terminal might seem different at first, relying on text commands instead of a mouse. It might seem different at first, relying on text commands instead of a mouse. But this simplicity holds immense power.
In this article, you’ll be going through a demonstration of Navigation Commands in Linux which will help in quickly navigating in the Linux file system. Let’s go through them, but before that have a short idea of the difference between Linux and Windows file systems.
File System Navigation Commands in Linux
- Difference between Windows and Linux File System
- Commonly Used File System Navigation Commands
- 1. pwd (print working directory)
- 2. ls (list files and directories)
- 3. cd (change directory)
- 4. mkdir (make directory)
- 5. rmdir (remove empty directory)
- 6. cp (copy)
- 7. mv (move)
- Additional Shortcut Tips
Contact Us