Read 02 Notes
Home
Linux Tutorial - 1. The Command Line
Shortcuts
The terminal may seem daunting but don’t fret. Linux is full of shortcuts to help make your life easier. You’ll be introduced to several of them throughout this tutorial. Take note of them as not only do they make your life easier, they often also save you from making silly mistakes such as typos.
- Shortcut: Here’s your first shortcut. When you enter commands, they are actually stored in a history. You can traverse this history using the up and down arrow keys. So don’t bother re-typing out commands you have previously entered, you can usually just hit the up arrow a few times. You can also edit these commands using the left and right arrow keys to move the cursor where you want.
Linux Tutorial - 2. Navigation
Summary
Stuff we Learnt
- pwd
Print Working Directory - ie. Where are we currently.
- ls
List the contents of a directory.
- cd
Change Directories - ie. move to another directory.
Important Concepts
- Relative path
A file or directory location relative to where we currently are in the file system.
- Absolute path
A file or directory location in relation to the root of the file system.
Linux Tutorial - 3. More About Files
Summary
Stuff we Learnt
- file:
obtain information about what type of file a file or directory is.
- ls -a:
List the contents of a directory, including hidden files.
Important Concepts
- Everything is a file under Linux
Even directories.
- Linux is an extensionless system
Files can have any extension they like or none at all.
- Linux is case sensitive
Beware of silly typos.