[Linux command summary] Command list [Must-see for beginners]

[Linux command summary] Command list [Must-see for beginners]

pwd command

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

/home/hoge/test_link


$ pwd -L
/home/hoge/test_link

mkdir command

A Linux command that creates a new directory. "mkdir" is an abbreviation for "make directory".

/home/hoge


$ ls -a
hoge.txt .hidden

$ mkdir -m 666 test

$ ls- a
hoge.txt .hidden test

cd command

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

/home/hoge/test


$ cd ../test2

cat command

This command outputs the file contents as standard. "cat" is an abbreviation for "concatenate".

/home/hoge/test


$ cat -n test.txt
     1	hoge
     2	hogehoge
     3
     4	hogehogehoge
     5
     6
     7
     8	hogehogehogehoge
     9

cp command

Linux commands used to copy files and directories. "cp" is an abbreviation for "copy".

/home/hoge


$ cp -r test /home/hoge/test2

ls command

This command is for displaying file and directory information. "ls" stands for "list directory contents".

/home/hoge


$ ls -lh
-rw-r--r-- 1 root root  11B Feb 24 17:11 hoge.txt
drwxr-xr-x 2 root root 4.0K Feb 24 17:14 test
drwxr-xr-x 2 root root 4.0K Feb 24 17:15 test2

touch command

Linux command to change the time stamp. It also has a function to create a new file by specifying a file name that does not exist.

/home/hoge


$ ls -lh
-rw-r--r-- 1 root root  11B Feb 24 17:11 hoge.txt
drwxr-xr-x 2 root root 4.0K Feb 24 17:14 test
drwxr-xr-x 2 root root 4.0K Feb 24 17:15 test2

$ touch -d "2020-2-25 18:30" hoge.txt

$ ls -lh
-rw-r--r-- 1 root root  11B Feb 24 18:30 hoge.txt
drwxr-xr-x 2 root root 4.0K Feb 24 17:14 test
drwxr-xr-x 2 root root 4.0K Feb 24 17:15 test2

less command

This is a Linux command to check the contents of the file.

/home/hoge


$ less -X hoge.txt
hogehoge
$

mv command

A command for moving files and directories. "mv" is an abbreviation for "move".

/home/hoge/test


$ mv -v test.txt ex.txt test.log test2
`test.txt' -> `test2/test.txt'
`ex.txt' -> `test2/ex.txt'
`test.log' -> `test2/test.log'

rm command

Linux command to delete files and directories. "rm" is an abbreviation for "remove".

/home/hoge


$ rm -i hoge.txt
remove hoge.txt? (y or n) y

ssh command

A Linux command for logging in to a remote host or executing a command using the ssh protocol. "ssh" is an abbreviation for "secure shell".

#IP192 as root user.168.x.Connect to x
$ ssh -l root 192.168.x.x 

man command

This is a Linux command for checking the manual of each command. "man" is an abbreviation for "manual".

#View the cd command manual using cat
$ man -P cat cd

BUILTIN(1)                BSD General Commands Manual               BUILTIN(1)

NAME
     builtin, !, %, ., :, @, {, }, alias, alloc, ...

Command       External    csh(1)    sh(1)
           !             No          No        Yes
           %             No          Yes       No
           .             No          No        Yes
           :             No          Yes       Yes
           @             No          Yes       Yes...

AUTHORS
     This manual page was written by Sheldon Hearn <[email protected]>.

BSD                            February 23, 2005                           BSD

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 summary] Command 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] 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]
[Linux command] ssh command option list [Must-see for beginners]
[Linux command] mkdir command option list [Must-see for beginners]
Linux operation for beginners Basic command summary
Linux command memorandum [for beginners]
[Must-see for beginners] Basics of Linux
Linux command list
Linux Command Summary
[Linux] 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
Reference resource summary (for beginners)
[Linux] User / group command summary
Convenient Linux shortcuts (for beginners)
What is scraping? [Summary for beginners]
Frequently used Linux commands (for beginners)
Pandas basics summary link for beginners
Linux command # 4
Linux command # 3
Linux Summary
Linux command # 5
Django tutorial summary for beginners by beginners ③ (View)
Summary of petit techniques for Linux commands
Django tutorial summary for beginners by beginners ⑤ (test)
Django tutorial summary for beginners by beginners ⑦ (Customize Admin)
Django tutorial summary for beginners by beginners ⑥ (static file)
[Linux] Search command
Roadmap for beginners
Linux command <Basic 2>
Django Tutorial Summary for Beginners by Beginners (Model, Admin)
Linux [directory command]
Django tutorial summary for beginners by beginners ① (project creation ~)
Linux server command
Linux # Command Memo 1
Linux command [read]
[Basic] linux command
Linux [shell command]
[Linux] Command / Knowledge
pyenv for linux
How to create a shortcut command for LINUX
Django tutorial summary for beginners by beginners ④ (Generic View)
My linux command
Linux command <Basic 1>
Linux command collection
Linux mkdir command
Linux command basics
[Linux] Git command
Docker command summary