Linux / UNIX List User Dot-Files

Linux / UNIX List User Dot-Files

In Linux and Unix systems, "dot-files" are files or directories that are hidden from normal view because their names start with a dot (.). These files are often used to store configuration information or other types of data that is specific to a user.

To list the dot-files for a specific user in Linux or Unix, you can use the ls command with the -a option to show hidden files. For example, to list the dot-files for the current user, you can use the following command:

refer t‮ual:o‬tturi.com
ls -a ~

This will list all of the files and directories in the current user's home directory, including hidden dot-files.

To list the dot-files for a different user, you can specify the user's home directory as the argument to the ls command. For example, to list the dot-files for the user bob, you can use the following command:

ls -a /home/bob

Keep in mind that this will only list the dot-files in the user's home directory. If the user has dot-files in other directories, you will need to specify those directories as arguments to the ls command.

For more information on using the ls command and working with dot-files in Linux or Unix, you can consult the documentation or seek guidance from the community.

Created Time:2017-10-16 14:38:52  Author:lautturi