-
-
Save syreal17/8b4bdf7bd0b35a7196b73c02c31c0ec2 to your computer and use it in GitHub Desktop.
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/` |
is "~" the same as directory path ?
@DonatienNtezy you can consider that as a shortcut to "home" directory. No matter which directory you are in, instead of traversing full path front and back, you can just give ~ to come directly to /home/Q0h313th/ as the author syreal17 mentioned.
is "~" the same as directory path ?
no. it is only for home/ path. directory path will differ, based on how "in-depth" you are in the folder hierarchical structure.
"~" mean is a directory Parth that can take you back to your home list or director Parth that have used/open
So "~" is the equivalent to home directory. Therefore, cd ~ should bring you back to the /home/Q0h313th/ directories?
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.
Are we suppose to know what a directory or in home directory is at this point already? Im confused sorry
Are we suppose to know what a directory or in home directory is at this point already? Im confused sorry
Directories are covered more later in the chapter, especially in the walkthrough where you create them and change into them. A directory is just a folder that can contain files or more directories.
got it, it´s like a pipe, only for the home directory or this pipe could be setting for redirected to anothe directory ? thanks by the way.
got it, it´s like a pipe, only for the home directory or this pipe could be setting for redirected to anothe directory ? thanks by the way.
It's different than a pipe. A pipe is an operator that connects the output of one program to the input of another.
Tilde is shorthand for the path to your home directory.
:)
"~" is called a tilde in English.