Files and paths · Question 3 of 12

What does the tilde (~) at the start of a path stand for in Bash?

1 answer is correct. Easy Created with AI

Show answer

Answer

  • B The current user's home directory

Explanation

Bash replaces ~ with the value of the HOME variable, for example /home/anna. ~/notes.txt is therefore a file in your own home directory.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications