Skip to main content
Post Closed as "Duplicate" by don_crissti, CommunityBot
fix typo
Source Link
Rizhiy
  • 353
  • 1
  • 3
  • 7

I can print current directory using pwd, but this gives me the path I navigated to get to where I am. I need onto know which disk/partition current directory is on.

For example, if I create symlink user@pc:~$ ln -s /media/HD1 hard_disk and then navigate to ~/hard_disk and run pwd it will print /home/user/hard_disk.

I would like to get the actual path I'm currently on or better just the actual filesystem I'm currently on, which corresponds to one in df.

I can print current directory using pwd, but this gives me the path I navigated to get to where I am. I need on which disk/partition current directory is on.

For example, if I create symlink user@pc:~$ ln -s /media/HD1 hard_disk and then navigate to ~/hard_disk and run pwd it will print /home/user/hard_disk.

I would like to get the actual path I'm currently on or better just the actual filesystem I'm currently on, which corresponds to one in df.

I can print current directory using pwd, but this gives me the path I navigated to get to where I am. I need to know which disk/partition current directory is on.

For example, if I create symlink user@pc:~$ ln -s /media/HD1 hard_disk and then navigate to ~/hard_disk and run pwd it will print /home/user/hard_disk.

I would like to get the actual path I'm currently on or better just the actual filesystem I'm currently on, which corresponds to one in df.

Became Hot Network Question
Source Link
Rizhiy
  • 353
  • 1
  • 3
  • 7

How do I find which disk/partition current directory is on?

I can print current directory using pwd, but this gives me the path I navigated to get to where I am. I need on which disk/partition current directory is on.

For example, if I create symlink user@pc:~$ ln -s /media/HD1 hard_disk and then navigate to ~/hard_disk and run pwd it will print /home/user/hard_disk.

I would like to get the actual path I'm currently on or better just the actual filesystem I'm currently on, which corresponds to one in df.