I am new to Ubuntu. Please help me with the following question. what is the meaning of ~/
in ls -la ~/
Asked
Active
Viewed 1.1k times
0
-
See also: What does ~/ mean? – Seth Nov 29 '15 at 19:10
2 Answers
2
The "~/" is the current user's home directory (usually /home/user for a normal user or /root for the root user). The 'ls -la' part is a command named 'ls', which is used to list the contents of a directory, with the switches '-l' '-a', that tell ls to show the permissions of each file/directory (-l) and include hidden files and directories in the list (-a).
'ls -la ~/' basically means "list all the files and directories (including the hidden ones) in the current home directory and show their permissions".

Eduardo Cola
- 5,817