Some basic operations in the Linux system

Source: Internet
Author: User

    1. Requirements for installing Linux

A) backup of the data on the hard disk prior to Linux system installation

b) The host disk should be a Linux system reserved space and partition

c) Linux system requires at least one root partition and one swap partition

d) root partition file system by default in EXT3 format

e) You can boot the installer using a CD-ROM or USB device

f) Setup can read software installation package from CD, hard disk and network server

    1. Common commands for Linux

A) CD command: Toggle the current directory

b) LS command: View file and Directory commands

c) CP command: for copying files

d) MV command: For moving files, directories, or renaming

e) RM command: For deleting files or directories

f) SU command: For switching the current user

g) chmod command: Change the permissions of the file

h) PWD command: shows the exact path

    1. Linux file permissions

-RWXRWX---1 root plugdev

A) Linux file permissions total 10-bit length, divided into four segments

b) First paragraph: Distinguishing between files and directories

c) Second paragraph: Owner permissions

D) Third paragraph: User's permissions

e) Fourth: Permissions of other users

    1. Commands in the VI editor

A) Insert mode

1) Press "i" switch into insert mode "insert mode", press "I" into the insertion mode is the beginning of the cursor from the current position to enter the file;

2) Press "a" to enter the insertion mode, the text is entered from the next position of the current cursor position;

3) Press "o" to enter insert mode, insert a new line, and enter text from the beginning of the beginning.

b) Insert mode switch to command line mode

1) Press "esc" key

c) Delete text

1) "x": Delete the "back" character at the cursor location every time you press it.

2) "x": Uppercase X, each time you press, delete the "front" character at the cursor location.

3) "dd": Delete the line where the cursor is located.

d) Exit VI and save the file

1): w filename (enter "w filename" to save the article with the filename you specified)

2): Wq (input "wq", save and Exit VI)

3): q! (Enter q!, do not save the mandatory exit VI)

    1. Batch processing in Linux

The batch suffix in Linux is named. SH, for example we want to start the Tomcat service, just run startup.sh

Some basic operations in the Linux system

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.