Common commands and Linux common sense

Source: Internet
Author: User
Tags clear screen

Common commands and Linux common sense
Version number analysis
2.6.32-220
2 Major Version number
6 minor version number even for stable version odd for dev version
32 Derived version number
220 modification Times

Root Super Admin home directory equivalent to Windows-My Documents
Home Common User Home directory

Show Machine Name
#hostname


LSPCI: Viewing PCI information
LSUSB: viewing USB information
Cat/proc/cpuinfo: Viewing CPU information
Free: View memory
DMESG: View drivers for all devices in the system



Split-screen command more or less
Understanding the meaning of pipelines |

View command ls
I often use the LS query
Ls-a
Ls-lh
Ls-la


Go to Folder command CD
Restart command reboot init 6 shutdown-r
Shutdown command Halt init 0 shutdown-h
Logout Command Exit Logout
Clear Screen Command Clear Ctrl+d
The help command Man command can be appended with a numeric parameter that indicates the specific range positioning:
The number "1" represents a user command
The number "2" indicates a system call
The number "3" represents the C library function
The number "4" indicates a device or special file
The number "5" represents the file format and rules
The number "6" means games and other
The number "7" represents macros, packages, and other miscellaneous
The number "8" indicates system administrator-related commands
Folder Management mkdir (new folder) rmdir (delete empty directory)
File Management Touch (new file) RM (delete file) rm-rf (delete folder) Cat (query file)
File folder mv (cut file) CP (copy file)
Hang/unload Command Mount/umount

Clear Clear Screen command
PWD Displays the current path
Date Modified Day Day of the month year
Cal Calendar Example Cal 05 2005 Show May 2005


Displays information about the current operating system and machine
#uname-a display all information
#uname-P Display processor type
#uname-M Display machine hardware information
#uname-r Display kernel version

Mount/dev/cdrom/mnt/cdroom
Mount/dev/sdb1/mnt/sdb
Umunt/dev/sdb1/mnt/sdb

Common commands and Linux common sense

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.