Well, we've already learned how to show the current directory with 'pwd' and change directories with 'cd'. But here are a few more shortcuts: If you're in your 'home/user' directory, type cd /home or cd .. and they'll take you to the parent directory.
Also, while you're in the home/user directory- if you want to move to a new folder inside the snubs folder, type cd /home/snubs/Documents/ or cd ./Documents, or you can just type cd Documents because the ./ is generally implied as the working directory.
A few other shortcuts having to do with changing the directory- cd - will take you to the previous working directory and cd ~snubs takes me back to my user directory.
After all that, you can type clear to clear out the terminal or exit to close it.
Lets get to listing. The ls command can be used to list files or directories that are found in a certain folder. For example, ls Documents lists all the files in my Documents folder, and ls Documents Pictures will list everything found in both of those folders. You can also add an option like ls -l Documents that'll give you more info about the files found in that directory. Typing ls -lt (giving it two options) will list in long format by modification time.
There are a bunch of other options you can use with each command, these are just a couple. Type ls --help to find all of the other options you can add. Alright! I think that's it for today, but I'll be back in my next HakTip with some more useful tips for Terminal.
How did you learn the terminal? There are lots of handy websites out there that go really into detail about how to use it. Tell me about your favorites in the comments or email me at tips@hak5.org. And be sure to check out our sister show, Hak5 for more great stuff just like this. I'll be there, reminding you to trust your technolust.




Hey!
I have just decided to migrate to Linux from Windows.
How do I learn Linux from scratch?