Linux - Difference between home directory and working directory?

What is the difference between home directory and working directory?

Home directory is the default working directory when a user logs in. On the other hand, working directory is the user’s current directory. Working directory can be changed. It can be changed using cd command.

Home directory in Linux contains user’s personal data, configuration files, settings of a software etc. The content of home directory is private and the user has a complete control of it.

What is the difference between home directory and working directory?

Home Directory: Every user will have one home directory and will have complete control over it. On login, home is the default working directory for the user. It contains the configuration files and responsible for login and logout of the user.

Working directory: The directory in which the user is working currently is known as working directory. The home may also be the working directory, if the user is working in it.
Linux - Difference between internal and external commands
Difference between internal and external commands - Internal commands are commands that are already loaded in the system. They can be executed any time and are independent.......
Difference between a static library and a dynamic library?
Linux static library and dynamic library - Static libraries are loaded when the program is compiled and dynamically-linked libraries are loaded......
Linux - What is LD_LIBRARY_PATH?
LD_LIBRARY_PATH is an environment variable. It is used for debugging a new library or a non standard library......
Post your comment

You may like