Frequently used Linux commands (for beginners)

Introduction

Linux is an operating system used all over the world. Linux commands are also used on Mac, so I would like to summarize frequently used commands once.

Linux command introduced this time

Details

cd Move the directory. (current directory)

Terminal


% cd /
=> /(Root directory)Move to
% cd
=> ~(Home directory)Move to
% cd appfolder
=>If there is a directory called appfolder in the current directory, move to appfolder
% cd ..
=>Parent directory(Directory one level above the current directory)Move to

pwd Show the current directory. (pringt working directory)

Terminal


Example)When you're on your desktop

% pwd
=> /Users/username/Desktop

mkdir Create a directory. (make directory)

Terminal


Example)When you're on your desktop

% mkdir newfolder
=>A directory called newfolder is created on Desktop

touch Create a new file.

Terminal


Example)When you're on your desktop

%  touch newfile
=>A file called newfile is created on Desktop

ls List files and directories in the current directory

Terminal


Example)When in the root directory

%  ls
=> Applications Systems Volumes cores...Omitted below

rm Delete files in the current directory

Terminal


Example)When you are in Desktop and there is a file called newfile in Desktop

%  rm newfile
=>Newfile on Desktop is deleted

rm -r Delete the directory in the current directory.

Terminal


Example)When you are in Desktop and there is a directory called newfolder in Desktop

%  rm -r newfolder
=>New folder on Desktop is removed

Finally

We hope that this post will help beginners review.

Recommended Posts

Frequently used Linux commands (for beginners)
Frequently used Linux commands
Frequently used Linux commands
Frequently used linux commands
Linux Frequently Used Commands [Personal Memo]
[Linux] Frequently used Linux commands (file operation)
List of frequently used Linux commands
[Linux] Frequently used Linux commands (folder operation)
[For beginners] Django Frequently used commands and reference collection
[Linux] Review of frequently used basic commands 2
[Linux] Review of frequently used basic commands
pyenv Frequently used commands
Frequently used pip commands
[Linux command] A memorandum of frequently used commands
Linux distribution recommended for beginners
Frequently used commands in virtualenv
Linux command memorandum [for beginners]
Convenient Linux shortcuts (for beginners)
Linux commands
linux commands
Convenient shortcut keys for Linux commands! !! !!
[Must-see for beginners] Basics of Linux
Linux commands
Linux commands
[Anaconda3] Summary of frequently used commands
Linux (for users and su / sudo commands)
Summary of frequently used commands of django (beginner)
Summary of frequently used commands in matplotlib
[Linux] List of Linux commands used in practice
[Linux command summary] Command list [Must-see for beginners]
Linux operation for beginners Basic command summary
Summary of petit techniques for Linux commands
Frequently used syntax memorandum for each language
Network Linux commands
[Python/Django] Summary of frequently used commands (4) -Part 2- <Production operation: Amazon EC2 (Amazon Linux 2)>
Verbalize Linux commands
Linux user commands
New Linux commands! !!
[Python/Django] Summary of frequently used commands (4) -Part 1- <Production operation: Amazon EC2 (Amazon Linux 2)>
Basic LINUX commands
pyenv for linux
Various Linux commands
Typical Linux commands (7)
[Linux] Review of commands for deploying on AWS
[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]
[Python/Django] Summary of frequently used commands (3) <Operation of PostgreSQL>
[Linux command] pwd 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]
Summary of frequently used Python arrays (for myself)
[Linux command] ssh command option list [Must-see for beginners]
[Python/Django] Summary of frequently used commands (2) <Installing packages>
Summary of frequently used commands (with petit commentary)
[Linux command] mkdir command option list [Must-see for beginners]
[Linux] A list of Linux commands that beginners should know
Spacemacs settings (for beginners)
Docker. Set frequently used commands to alias "with explanation"