Common basic commands for Linux

Source: Internet
Author: User
Tags file copy

1. Clear Erase Screen

2, LS View all files or folders under the directory

3, su root switch to root user

The SU user name switches to the user

4. mkdir Folder name new Folder

5, Rm-r folder or file name to delete folders or files, will prompt (if the prompt permission is insufficient, please switch to the root user and then delete)

Rm-rf folder or file name directly forcibly delete folder or files, do not prompt, must be cautious

6, TAR-ZXVF jdk-7u79-linux-x64.tar.gz Extract Files

7. CP source file destination file copy file

8, File upload Download (rz,sz file name) file Upload command for RZ, download command for SZ, but Linux may not have installed the Upload tool, so the input RZ and SZ will be prompted to find the command. So you need to use the command to install the tool. Enter the Yum install-y lrzsz on the command line.

After installing the File Upload Tool at the command line to enter RZ will pop up the file selection dialog box, select the file will be automatically uploaded, download can be entered in the command line "SZ file name" can be directly downloaded

9, tomcat start: Generally execute sh tomcat/bin/startup.sh, stop: General is the execution Sh tomcat/bin/shutdown.sh script command

Other operations:

1. Installing the JDK

Reference URL: http://www.linuxidc.com/Linux/2016-09/134941.htm

Common basic commands for 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.