[Linux] Frequently used Linux commands (folder operation)

Frequently used Linux commands

It's been a few months since I started learning, but I'll write the commands I've used so far instead of the output, so I hope it will be useful for people who are just starting to learn. This time I will write about folder operations. File operations are written on a separate page.

Show current directory

$ pwd

Display file information in the current directory

$ ls

You can optionally set details such as listing files and arranging them in order of modification time.

ls -l List files (details) ls -t Arrange the list in order of file modification time ls -r Sort the list in descending order ls -ltr Sort file list in descending order of update time

Create a new directory

You have now created a file called aaa.

$ mkdir aaa

Move current working directory

cd (no destination specified) Move to home directory cd. Change to the current directory cd .. Move up one directory

Delete directory

You can delete directories, but you cannot delete directories that are not empty.

$ rmdir aaa

Recommended Posts

[Linux] Frequently used Linux commands (folder operation)
[Linux] Frequently used Linux commands (file operation)
Frequently used Linux commands
Frequently used Linux commands
Frequently used linux commands
Linux Frequently Used Commands [Personal Memo]
Frequently used Linux commands (for beginners)
List of frequently used Linux commands
[Linux] Review of frequently used basic commands 2
[Linux] Review of frequently used basic commands
pyenv Frequently used commands
Frequently used tmux commands
Frequently used pip commands
[Python/Django] Summary of frequently used commands (3) <Operation of PostgreSQL>
[Linux command] A memorandum of frequently used commands
[Python/Django] Summary of frequently used commands (4) -Part 2- <Production operation: Amazon EC2 (Amazon Linux 2)>
[Python/Django] Summary of frequently used commands (4) -Part 1- <Production operation: Amazon EC2 (Amazon Linux 2)>
Frequently used commands in virtualenv
Linux commands
Linux commands
8 Frequently Used Commands in Python Django
[Linux] File and directory operation commands
Linux commands
Linux commands
[Anaconda3] Summary of frequently used commands
Summary of frequently used commands in matplotlib
Python + Selenium Frequently used operation method summary
Network Linux commands
Verbalize Linux commands
Linux user commands
New Linux commands! !!
Various Linux commands
Typical Linux commands (7)
[Python/Django] Summary of frequently used commands (2) <Installing packages>
Summary of frequently used commands (with petit commentary)
Selenium webdriver Summary of frequently used operation methods
Docker. Set frequently used commands to alias "with explanation"
[Linux] Group related commands
Linux commands to remember
Linux command [File operation]
New Linux commands! !! Part 2
Display a list of frequently used commands on Zsh
[For beginners] Django Frequently used commands and reference collection
Linux operation on Win10
Frequently used ps command options
Studying Linux commands and frustration
[Python] Frequently used library code
Frequently used subpackages of SciPy
Python frequently used code snippets