Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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?
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
echo $(hostname) $(pwd)
?echo $HOSTNAME $PWD
fstab
? If so, look intofindmnt
with its multiple output formatting options