Summary of Linux Beginners

Source: Internet
Author: User
Tags file permissions

Finally, a few years ago to learn some basic Linux commands, summed up the learned (more practical) things

I'm using the community version of Red Hat Enterprise Linux7 Centos7

First most important file view commands: ls, dir, cd

Copy-to-file movement: CP, MV

Next there are more commonly used editing methods: Gedit Editor editor, vim editor editor

Viewing the contents of a file: Cat

Create a file: VI file name

Create a folder: mkdir

Delete folder: RmDir

Viewing storage conditions: df-h

Common programming Tools: GCC, JDK, eclipse

Download tool: wget/HTTP/domain

To view network connections: ifconfig

To see if the network link is connected: Ping IP Address

Enable/disable NIC: Ifup/ifdown nic Name

Toggle command line: Init 3

Switch GNOME Desktop: init5/startx

Switch User: Su-user name (root)

Temporarily get root permission: sudo

Make changes to file permissions: chmod file owner rights + Group user Rights + other users

To set executable permissions on a file: chmod +x file name

System Rescue Mode: Systemctl rescue

Set up the service to run automatically: Systemctl enable service name. Services

Start a service: Systemctl start service name. Service/service Service Name Start

To view the health status of a service: Systemctl status Service name. Service/service Service Name Status

Unzip the installation software: Tar xzvf *.tar.gz->./configure->make->make Install

Check whether the software is installed: Rpm-qa|grep installed software name

Search whether a specified process is running: Ps-aux|grep process name

Using Yum to install software: Yum install software name (service name)

Use RPM to install software: RPM-IVH software name

Uninstalling the software: Make uninstall/yum-y Remove software name

Cleanup of the process: Killall process Name

To clean up a specified user process: Killall-u user name

These are some of the more important commands that I find useful when it comes to Linux, and it's interesting to watch my blog.

Because I am also a beginner will inevitably have mistakes, I hope you can criticize correct.

Summary of Linux Beginners

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.