The thing about Linux

Source: Internet
Author: User
Tags file diff tar unzip dmesg egrep

Table of Contents Operations Commands (6)

ls tree pwd mkdir rmdir CD


File Operations Command (7)

Touch CP MV RM Ln Find rename


File View and Processing commands (21)

Cat more less head TAC Head tail cut paste

Sort uniq WC iconv Dos2unix file diff tree Chattr

Lsattr Rev Vimdiff


File Pack and Compress command (3)

Gzip Tar Unzip


Information display commands (12)

uname hostname dmesg uptime file stat du DF top free W Date


Search Files Command (4)

Find which Whereis locate


Search text Commands (2)

grep egrep


User Management commands (10)

Useradd Userdel passwd chage usermod id su sudo visudo

Groupadd


Basic Network Operations Commands (10)

Telnet ssh scp wget ping route ifconfig ifup Ifdown Netstat


Deep Network Operations Command (6)

Route mail Mutt nslookup dig wget


Commands for disk space (6)

Mount Umount DF du fsck DD


Commands for shutting down and viewing system information (7)

Shutdown reboot PS Top Kill date


Install and Login commands (3)

Shutdown halt reboot


System Management Related commands (9)

Top free Vmstat mpstat iostat SAR kill Chkconfig Last


System security-related commands (13)

passwd su sudo umask chgrp chmod chown chattr lsattr PS

WhoAmI


View System User Login Information command (6)

W who's users last Lastlog fingers


View hardware-related commands (6)

Ethtool Mii-tool Dmidecode DMESG Lspci


Other (14)

Chkconfig Echo Yum Watch alias Unalias date Clear History Eject time Nohup NC xargs


Advanced Linux commands for monitoring physical components

Memory: Top free vmstat mpstat iostat SAR

Cpu:top Vmstat Mpstat Iostat SAR

I/o:vmstat Mpstat Iostat SAR

Process: IPCS IPCRM

Load: Uptime


Shutdown/restart/logoff commands

Shutdown:

Shutdown-h now――> immediately shut down (production commonly used)

Shhutdown-h +1――>1 minutes after the shutdown

Init 0

Halt――> immediately stop the system and require manual power-down

Halt-p

Poweroff――> Stop the system immediately and power off


Restart :

Reboot (common production)

Shutdown-r now (production used)

Shhutdown-r +1――>1 minutes after the restart

Init 6


Log off

Logout

Exit (common production)

Ctl+d――> shortcut keys (production is used)


Process Management: (16)

BG: Running in the background FG: Suspend program jobs: Show Background programs

Kill,killall,pkill: Kill the process

Crontab: Set Timing PS: View process pstree: Show process status tree

Top: Show process nice: Change priority nohup: Continue working after the user exits the system

Pgrep: Finding matching Criteria for a process STRACE: Tracking system calls for a process

LTRACE: Tracking process Call library function Vmstat: Reporting virtual memory statistics


Dangerous system Commands:

MV RM DD Fdisk parted


Linux Four swordsman (4)

grep egrep sed awk

What's happening with Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.