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

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

Summary Linux command list

What is the cd command?

Linux command to move directories. "cd" is an abbreviation for "change directory".

cd command usage list

Move to root directory

/home/hoge


$ cd /

Move to home directory

/


$ cd ~

↑ ↓ It has the same meaning.

/


$ cd 

Move by relative path

What is a relative path?

This is the path seen from the current directory.

/home


$ cd hoge

Moving with an absolute path

What is an absolute pass

It is the path seen from the top of the whole.

/home/hoge


$ cd /test

One level up

/home/hoge/test


$ cd ..

Move up two levels

/home/hoge


$ cd ../..

Move to the taro directory one level higher

/home/hoge


$ cd ../taro

-P option

A handy option to navigate to a symbolic target if the destination directory is a symlink

/home


$ cd -P hogege

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] cd 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] cat command option list [Must-see for beginners]
[Linux command] pwd command option list [Must-see for beginners]
[Linux command] rm 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 Command Dictionary (for myself)
Python #list for super beginners
Convenient Linux shortcuts (for beginners)
Frequently used Linux commands (for beginners)
Linux command # 4
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 # 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
[Linux] Basics of authority setting by chmod for beginners