Created
February 20, 2020 17:42
-
-
Save syreal17/8b4bdf7bd0b35a7196b73c02c31c0ec2 to your computer and use it in GitHub Desktop.
pico Primer for Competitors - Shell Chapter - Got Shell? Section
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Q.3: What does `~` mean? | |
A.3: The shell is parked in Q0h313th's home directory which can be accessed by `~` on the computer called `pico-2019-shell1` | |
Note: the full path for `~` can be expanded to `/home/Q0h313th/` |
Yes, the following 2 command produce the same result, bringing you to your home directory
cd
cd ~
~ it is called tildi it used as a shortcut form root/home directories
~ is called a tilde.
It's equivalent to the home directory: /home/Q0h313th/
~ means now the shell is having the home directory
is a directory
"~" When we use it in shell or terminal as a command, It takes us directly in home directory.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So "~" is the equivalent to home directory. Therefore, cd ~ should bring you back to the /home/Q0h313th/ directories?