$HOME: Difference between revisions
From Hackepedia
Jump to navigationJump to search
No edit summary |
mNo edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
Many examples will use $HOME, so this page is here to let you know that on [[UBO]]s, $HOME is your home directory. If my username was frank, I could do: | |||
Many examples will use $HOME, so this page is here to let you know that on | |||
$ grep frank /etc/passwd | awk -F: '{print $6}' | $ grep frank /etc/passwd | awk -F: '{print $6}' | ||
| Line 19: | Line 18: | ||
will put you there. | will put you there. | ||
$ pwd | |||
/home/frank | |||
will show you which directory you're currently in. | (print working directory) will show you which directory you're currently in. | ||
You can use [[locate]] to find some other useful tools. | |||
Latest revision as of 21:47, 18 January 2006
Many examples will use $HOME, so this page is here to let you know that on UBOs, $HOME is your home directory. If my username was frank, I could do:
$ grep frank /etc/passwd | awk -F: '{print $6}'
/home/frank
I can see my home directory is frank. If I want to go there I can type
$ cd /home/frank
to change directory there. There are also a few shortcuts to get to your $HOME directory.
$ cd $HOME
and even easier
$ ~
will put you there.
$ pwd /home/frank
(print working directory) will show you which directory you're currently in. You can use locate to find some other useful tools.