Linux Administration commands

Source: Internet
Author: User

LS------display the specified directory and file information CD-------Enter the directory of the specified name

PWD------Display the current directory name mkdir-------Create a directory with the specified name

CD/ETC CD. /bin--------------Change the current directory

mkdir mydir rmdir Mydir Creating and deleting directories

cd./test ls. /bin relative path is a directory path representation starting with "," or ","

Ls/cd/home absolute Path is a path representation that begins with "/"

File--------Display the type of the specified files touch-------------------create a file or update that creates a name Part time

RM--------------Delete Files directory df-h----------------show hard disk usage

Chkconfig--list-----------------View Management Services Chkconfig-add----------------add

Less----------------View the file man------------view the command document

Fdisk-l-------------View the number of drives and partitions mounted on the Mount mounted Fast device

chmod 777 file name/folder name owned so permissions chmod 755 file name/folder name owner has all permissions. Groups and others have read, execute permissions

chmod 770 file name/folder name owner and group have all permissions chmod 666 file name/folder name remove executable permissions for files

U------represents the principal G-------Representative Group O--------on behalf of other users CHOMD ugo-x-----The file name/folder name to the owner additional execution permissions

chmod a+x AA----------give everyone permission chmod a-x AA to everyone minus Execute permissions

Useradd--------Add user-D pointing home directory-G user group-s login shell

passwd------------Set/Modify password Usermod----------Modify the account's various genus group date-------display and settings Date, Time

Mkdir-p test1/test2/test3 Loop Create directory rmdir-p/test1/test2/test2------------Loop Delete Directory {Prerequisite directory is empty}

MKDIR-M 711 test4-----Permissions for the specified directory ifconfig eth0-------Super User/sbin/ifconfig et H0------General Users

Cat----------Display the file TAC-------------start with the last line displays the line number when the NL---is displayed

Linux Administration commands

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.