About Linux basic commands

Source: Internet
Author: User
Tags clear screen iptables

1. Install the VMware Visual machine secret key
2. Installing CentOS6.5

Linux Common commands
1.PWD View current Path
2.ls view directories and files under the current path
Ls-l viewing directories and files as a list
Ls-la View all directories and files as a list (you can see hidden files)
3.clear Clear Screen
4.rpm-qa|grep JDK to see if the JDK is installed
Path to the 5.rpm-ef JDK
6.RPM-IVH Path to install software
7.TAR-ZXVF/directory to extract the software-c/extract to which directory
8.tomcat 8080 Linux cannot directly access ports need to open corresponding port number
Iptables-a input-ptcp--dport 3306-j ACCEPT
Iptables Save
Service Iptales Restart

9.kill-9 Thread Number
10. How to view the thread number
Ps-ef|grep JDK View Thread number
11.mkdir Folder name new Folder
12.CD Jump Directory
13.touch Abc.txt
14.cp-r/directory 1/directory 2 recursive replication
15.MV Catalog 1 Catalog 2 Cut
16.rm-p Directory Recursive deletion
17. User Action Commands
1) su Root uses the SU command to switch to the root user
2) View Current user WhoAmI
3) View the command group for the group to which the current user belongs
4) View the UID of the current user, and the GID ID
5) Add user's new command useradd
6) passwd User name
7) Delete User Userdel user name
8) Modify user information usermod-l new user name old username
9) Modify Yo household group usermod-g new group name User name
10) Add Group Groudadd
18. Permission actions in Code demo

19: Command to install JDK
1) Where to find the JDK installation files Cd/soft
2) See what software is available in the soft directory Ls-la
3) Install RPM-IVH JDK name (copy over)

1. Turn on MySQL service
Service MySQL start;
2. First login MYQL Set password
mysql> Set Password = password (' 123456 ');
3. Authorize the root user to log in remotely
Mysql> Grant all privileges on * * to [e-mail protected] '% ' identified by ' 123456 ' with GRANT option;

20.Linux system Installation SVN how to install software online
Yum-y Install SVN

About Linux basic commands

Related Article

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.