[LINUX] Summary of frequently used commands (with petit commentary)

This article is conscious of "you can use it with copy and paste!"

A supplementary explanation of when and when to use it as a petite commentary The path varies depending on the environment, but I am making it available with some changes after copying and pasting

apache version check

[root@localhost~ #] httpd -v

Move to the front of httpd.conf

[root@localhost~ #] cd /etc/httpd/conf

Edit httpd.conf

[root@localhost~ #] vi /etc/httpd/conf/httpd.conf

Operation check of conf file under / etc / httpd /

[root@localhost~ #] httpd -t

Check access log and error log in real time

[root@localhost~ #] tail -f /var/log/httpd/access_log [root@localhost~ #] tail -f /var/log/httpd/error_log

Access_log / error_log Move to the front

[root@localhost~ #] cd /var/log/httpd vi(vim) [root @ localhost ~ #] vi file name (pass through the path) → The file edit screen will be displayed.

Edit input mode You cannot edit unless you press this.

i

Exit edit input mode

esc key (upper left of keyboard)

Close the edit screen without saving

:q!

Save and close with edit screen

:wq

Save only. Edit screen does not close

:w

One word forward

b

To the end of the word

e

To the next word

w

Recommended Posts

Summary of frequently used commands (with petit commentary)
[Anaconda3] Summary of frequently used commands
Summary of frequently used commands of django (beginner)
Summary of frequently used commands in matplotlib
[Python/Django] Summary of frequently used commands (3) <Operation of PostgreSQL>
[Python/Django] Summary of frequently used commands (2) <Installing packages>
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
[Python/Django] Summary of frequently used commands (4) -Part 2- <Production operation: Amazon EC2 (Amazon Linux 2)>
Frequently used linux commands
[Python/Django] Summary of frequently used commands (4) -Part 1- <Production operation: Amazon EC2 (Amazon Linux 2)>
Summary of frequently used Python arrays (for myself)
Selenium webdriver Summary of frequently used operation methods
Frequently used pip commands
A collection of commands frequently used in server management
Display a list of frequently used commands on Zsh
Frequently used subpackages of SciPy
Frequently used commands in virtualenv
8 Frequently Used Commands in Python Django
Linux Frequently Used Commands [Personal Memo]
[Linux] Frequently used Linux commands (file operation)
Frequently used Linux commands (for beginners)
[Linux] Frequently used Linux commands (folder operation)
Summary of methods often used in pandas
Python + Selenium Frequently used operation method summary
[Linux] Summary of middleware version confirmation commands
[Linux] List of Linux commands used in practice
Summary of snippets when developing with Go
[Machine learning] List of frequently used packages
Summary of operations often performed with asyncpg
List of frequently used built-in functions and methods
Summary of what was used in 100 Pandas knocks (# 1 ~ # 32)
Summary of tools used in Command Line vol.8
Summary of tools used in Command Line vol.5
[Python] Summary of S3 file operations with boto3
[Python] Introduction to web scraping | Summary of methods that can be used with webdriver
Summary of Linux (UNIX) commands that appeared in Progate
Summary of tools for operating Windows GUI with Python
Summary of Pandas methods used when extracting data [Python]
Comparison table of frequently used processes of Python and Clojure
Summary of how to share state with multiple functions
[For beginners] Django Frequently used commands and reference collection