1

pwd will print current working directory. Is there a terminal command to print the current working host and directory so you can just dump it into /etc/fstab as a mount point?

3
  • 2
    Like that echo $(hostname) $(pwd)? Commented Dec 7, 2020 at 22:03
  • 1
    and echo $HOSTNAME $PWD
    – Raffa
    Commented Dec 7, 2020 at 22:06
  • 1
    As a mountpoint? Are you using an NFS mount or something that you want to add to fstab? If so, look into findmnt with its multiple output formatting options
    – muru
    Commented Dec 8, 2020 at 3:00

0

You must log in to answer this question.

Browse other questions tagged .