Show current directory / absolute path in linux

Sometimes you may struggle to know the full path / directory structure in Linux especially on shared hosting or VPS machines. The full path is often needed for cron or scripts but you may be restricted or locked to certain directories yourself.

Use the pwd command to reveal the absolute path to your current directory as shown in the example below, simply type pwd in the terminal and hit enter/return

 pwd
/home/someuser/downloads/
Print Friendly, PDF & Email

More Like This


Categories


Linux

Tags


  • Post a comment