Use pwd Command in Linux

by | Jul 8, 2023 | Etcetera | 0 comments

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.

See also  The way to Use Bitrix24 CRM with WordPress

WordPress Website Development

Supply: https://www.hongkiat.com/blog/linux-command-pwd/

[ continue ]

WordPress Maintenance Plans | WordPress Hosting

read more

0 Comments

Submit a Comment

DON'T LET YOUR WEBSITE GET DESTROYED BY HACKERS!

Get your FREE copy of our Cyber Security for WordPress® whitepaper.

You'll also get exclusive access to discounts that are only found at the bottom of our WP CyberSec whitepaper.

You have Successfully Subscribed!