Skip to content

Instantly share code, notes, and snippets.

@syreal17
Created February 20, 2020 17:42
Show Gist options
  • Save syreal17/8b4bdf7bd0b35a7196b73c02c31c0ec2 to your computer and use it in GitHub Desktop.
Save syreal17/8b4bdf7bd0b35a7196b73c02c31c0ec2 to your computer and use it in GitHub Desktop.
pico Primer for Competitors - Shell Chapter - Got Shell? Section
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/`
@syreal17
Copy link
Author

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.

@ArduinoAficionado
Copy link

:)

@AnsarulHaq786
Copy link

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.

yeah.
and similarly "cd /" will take you to the root directory

@xmass890
Copy link

"~" tilde is the convection for home directory , but that part show the present working directory

@GauravJain1008
Copy link

tilde

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment