Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

What is the difference between "home" and "root"?

Posted on 2011-03-09
8
816 Views
Last Modified: 2012-05-11
What is the difference between "home" and "root"?
I think they are same.

 "~" means home?
0
Comment
Question by:zhshqzyc
8 Comments
 
LVL 31

Expert Comment

by:farzanj
ID: 35090687
No.
~ means home of your current account

root is a special user in Linux/Unix with unlimited power.

if you are root, then your ~ may be /root

if you are user, then your ~ may be /home/user
0
 
LVL 2

Expert Comment

by:sihar86
ID: 35090714
home folder is parent folder of another user that we created using privilege root
root folder is parent folder of user root(created after finish install linux)
0
 
LVL 12

Assisted Solution

by:upanwar
upanwar earned 20 total points
ID: 35090741
~ means home of your current user.

root is a super user in Linux with unlimited power.

If you are root, then your (~) home directory would be /root but you are a regular user than your (~) home directory would be either /home/<user name> or the home directory path may be change as the parameter set in /etc/passwd.

Like home directory for mysql, oracle, or some application software may be different from /home/<user>.
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 2

Expert Comment

by:SyedJan
ID: 35090817
all the those users who are administrator users  thier user profiles  are store at root folder and all those users who are normal users their user profiles are stored in home folder.

0
 
LVL 2

Accepted Solution

by:
preraksheth earned 30 total points
ID: 35090827
home is the directory where the user starts by default.
root is more general - it is applicable to the mounted volume and is the parent of all the directories within that volume. There is also a system root - which works as the top directory for the overall os.
0
 

Expert Comment

by:guyinwonder
ID: 35091070
"Home" folder is where linux store all the standar user folder data
as for "root" in only store for Root user data.

think of it like myDocument folder in windows..in linux we called it home folder.

~ is short cut to point to the user folder data the ~ will pointed to root folder if you are using root user right and ~ will pointed to standard user folder (Home) if you are using standard user.


0
 
LVL 6

Expert Comment

by:LeeeRussell
ID: 35093267
If you are using Ubuntu as your Linux distro, this concept will be slightly more difficult to understand as Ubuntu doesn't use the root and home accounts in the same way that "classic" linux does.

This gives a good summary of this:
https://help.ubuntu.com/community/RootSudo
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35094207
In Ubuntu too the concept is exactly the same.  This article is talking about default security provisions.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Bash Script to find & Kill Multiple Process 3 100
OS & DB Recommendation 4 48
Linux Search 3 67
Linux : how to point the OS to use the new DNS server 11 104
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question