0

I am new to Ubuntu. Please help me with the following question. what is the meaning of ~/ in ls -la ~/

muru
  • 197,895
  • 55
  • 485
  • 740

2 Answers2

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
1

~/ points to the current user home directory.

Same as /home/user_name

Pilot6
  • 90,100
  • 91
  • 213
  • 324