20180508 Morning Lesson Records 05-linux

Source: Internet
Author: User
1. Commands with small R parameters

Cp-r
Rm-rf
Ls-r

2. Commands with R parameters

Chown chmod

3.MV CP who fast

Mv

4. View commands help What do you think?

XXX--help
See Usage first

5. What should I do if the leader asks you to open the Web interface of the computer XXX service?

Ifconfig--Find IP
Ps-ef|grep xxx--Find PID
Netstat-nlp|grep PID--Find port
PS can also view the path address of the XXX service, locate the configuration file, view the configuration file

6. Expansion problem: We found a user, login can not, or SU also can not switch, said the user can not log in, we want to modify what files, what will be modified what?

Change/etc/passwd/sbin/nologin to/bin/bash

7. What is a multi-person session command? Create, enter, exit, view what parameters to separate

Screen
Screen-s xxx
Screen-r xxx
Ctrl+a+d
Screen-list

8. Run a script every five minutes, ask what command to edit, what command line

CRONTAB-E /5 * XXX

9. Cascading create folders, commands, and parameters

Mkdir-p

10. What are the two types of environment variable files, and where, respectively, how to take effect

Global:/etc/profile
Personal: ~/.bash_profile
Source in effect

11. Hide the file what identifies the start, what command parameters to view

. Opening Ls-a View

12. Scenario Title: A computer has a component only know the name XXX middle three letters, how do you find it

Find/-name xxx

13.which This command, is to find the command, ask is from which inside find

PATH environment variable

14.tar decompression, what problems will generally occur?

User and user groups are not

15. View the size of the file two commands

LS-LH Du-sh

16. View the folder size, which command?

Du-sh

20180508 Morning Lesson Records 05-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.