The pwd
command, standing for ‘print working record’, is without doubt one of the most often used directions inside the Linux operating device. This command is used to turn completely the path of the current record you’re working in. Completely the path way all the path starting from the basis record, /
, to the current record you may well be in.
Whilst you open your terminal, you generally get began in your home record. Then again as you navigate via other directories the usage of the cd
(alternate record) command, you have to lose apply of where you currently are. That’s when pwd
comes to hand. By means of typing pwd
and pressing enter, the terminal will output the entire record path where you’re in recent years situated.
Listed here are some ways to use the pwd
command:
1. Print Working Record
The fundamental usage of pwd
without any possible choices will display the entire path of the current record.
pwd
This will likely an increasing number of output something like /area/username/record
, depending on your provide record.
2. Print Physically Record
When you’ve got navigated via a symbolic link to an inventory, pwd
will show the logical path that comprises the symbolic link. If you want to see the real physically path, you’ll use the -P
selection.
pwd -P
3. Print Logical Record
Conversely, if you want to be sure that pwd
shows the logical path in conjunction with symbolic links, you’ll use the -L
selection. However, this is generally the default habits.
pwd -L
The publish Use pwd Command in Linux appeared first on Hongkiat.
Supply: https://www.hongkiat.com/blog/linux-command-pwd/
0 Comments