[Linux command] pwd command option list [Must-see for beginners]

[Linux command] pwd command option list [Must-see for beginners]

Summary Linux command list

What is the pwd command?

A Linux command that displays the full path of the current working directory location. "pwd" stands for "print working directory".

How to use commands

/home/hoge


$ pwd
/home/hoge

Man command option list

option Description
-L Display paths without considering symbolic links
-P Show the path to the entity of the symbolic link

-L option

/home/hoge


#Check directory structure
$ ls -l
-rw-r--r-- 1 hoge hoge   11 Feb 24 17:11 hoge.txt
drwxr-xr-x 2 hoge hoge 4096 Feb 24 17:14 test
drwxr-xr-x 2 hoge hoge 4096 Feb 24 17:15 test2
lrwxr-xr-x 2 hoge hoge 4096 Feb 24 17:15 test_link -> test2

$ cd test_link
$ pwd -L
/home/hoge/test_link

-P option

/home/hoge


#Check directory structure
$ ls -l
-rw-r--r-- 1 hoge hoge   11 Feb 24 17:11 hoge.txt
drwxr-xr-x 2 hoge hoge 4096 Feb 24 17:14 test
drwxr-xr-x 2 hoge hoge 4096 Feb 24 17:15 test2
lrwxr-xr-x 2 hoge hoge 4096 Feb 24 17:15 test_link -> test2

$ cd test_link
$ pwd -P
/home/hoge/test2

List of options for other Linux commands

pwd, mkdir, cd , cat, cp, ls, touch, less, mv, rm, ssh, man, ** Adding at any time **

Advertising space

We undertake various development and construction contracts and mentor work for beginners. If you are interested, please go to ** here **

Recommended Posts

[Linux command] pwd command option list [Must-see for beginners]
[Linux command] cp command option list [Must-see for beginners]
[Linux command] ls command option list [Must-see for beginners]
[Linux command] touch command option list [Must-see for beginners]
[Linux command] less command option list [Must-see for beginners]
[Linux command] cat command option list [Must-see for beginners]
[Linux command] rm command option list [Must-see for beginners]
[Linux command] cd command option list [Must-see for beginners]
[Linux command] mv command option list [Must-see for beginners]
[Linux command] man command option list [Must-see for beginners]
[Linux command] ssh command option list [Must-see for beginners]
[Linux command] mkdir command option list [Must-see for beginners]
[Linux command summary] Command list [Must-see for beginners]
Linux command memorandum [for beginners]
[Must-see for beginners] Basics of Linux
Linux command list
Linux operation for beginners Basic command summary
Linux command for self-collection
What is Linux? [Command list]
Linux distribution recommended for beginners
Linux Command Dictionary (for myself)
Python #list for super beginners
Convenient Linux shortcuts (for beginners)
Frequently used Linux commands (for beginners)
Linux command # 3
Linux command # 5
How to create a shortcut command for LINUX
linux at command
[Linux] Search command
Roadmap for beginners
Linux command <Basic 2>
Linux [directory command]
Linux server command
Linux # Command Memo 1
Linux command [read]
Linux Command Summary
[Basic] linux command
Linux [shell command]
[Linux] Command / Knowledge
pyenv for linux
My linux command
Linux command <Basic 1>
Linux command collection
Linux mkdir command
Linux command basics
[Linux] Git command
Linux (command memory)
[Linux] A list of Linux commands that beginners should know
[For beginners] How to use say command in python!
[Linux] Basics of authority setting by chmod for beginners