Linux learning a common Linux command, common directory, VI editor

Source: Internet
Author: User

1. Common Linux directives

Common directives

Function

StartX

Enter the graphical interface

Shutdown-h now

Shutdown

Shutdown-r Now or reboot

Restart

Su-

Switch Administrator

Logout

Cancellation

Ls or Dir

All files in current directory

Ls-l

Current directory all file details

Cd

Switch directories

Pwd

List the current directory path

Useradd XXX

Add User xxx

PASSWD XXX

Change Password to User xxx

Userdel XXX

Delete User xxx

Userdel-r XXX

Delete User xxx (contains directory structure)

2. Linux Common Directory

Common Directory

Describe

/

root directory

/root

Store root user-related files

/home

Storage of common user-related files

/bin

Store command

/sbin

Store commands that require certain permissions

/mnt

Default mount for CD-ROM and floppy drive directories

/boot

Store boot-related files

/etc

Storing configuration-related files

/var

Storage of frequently changing documents

/usr

Default installation path for software

3. Use of the Vi editor

    1. Vi Hello.jave
    2. I Enter insert mode
    3. Input code
    4. ESC launches insert mode
    5. Wq Save and exit
    6. Q! Do not save exit
    7. Javac Hello.java Compilation
    8. Java Hello Run

Linux learning a common Linux command, common directory, VI editor

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.