Home Directory in Linux



Home Directory


In Linux every users have their own directory in which they work, it is called the home directory of that user. You can set permissions so that other users can not access this directory or they can read but cannot write or whatever you want.

The directory in which you find yourself when you first login is your home directory.
Its path is generally


/home/username

You can go in your home directory any time using the following command


$cd 
or
$cd ~

Here ~ indicates home directory

you can change directory path using ~as home directory as

$cd ~/Downloads               in place of
$cd  /home/user/Downloads

If you want to go in any other user's home directory then use the following command

$cd ~username
$

To go in your last directory you can use following command

$cd -
$


The Administrative users home directory is
/root


Keyboard (ctrl) commands in Linux



No comments: