20180504 Morning Lesson Records 03-linux

Source: Internet
Author: User
1. What are the commands with R parameters now?

Cp-r
Rm-rf
Ls-r

2. Colleagues said, open the Computer XXX Service Web interface, which of the several ways you think you can try to know?

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

3.MV and CP who fast

MV Fast

4. Personal environment variable file where, general what file, what command to view, how to take effect

~/.bash_profile
More ~/.bash_profile View
SOURCE ~/.bash_profile or. ~/.bash_profile Effective

5. Expanded thinking: If, Jepson's home directory We need to change to/usr/local/mysql directory, then how to modify? (I only show you a configuration file, and use the command to modify the next lesson)

VI/ETC/PASSWD changed/home/jepson to/usr/local/mysql
or usermod-d/usr/local/mysql Jepson change

6. Then, after the home directory changes, the new home directory, no environment variable file, what should we do

Either from the original home directory CP or manually created.

What is the 7.VI editing process?

I--Enter edit mode
ESC--Exit Edit
: Wq--Save exit
: q! --Do not save exit

8. Switch User what command, usually with what parameters

Su-xxx

9. What do ordinary users want to do with temporary root privileges?

Sudo

10. In which configuration file modification

/etc/sudoers

11. Append and overwrite what are the symbols respectively

1 >>--Append
2 >--Coverage

12. View the contents of the file in real time

Tail-f
Tail-f

13. A server, XXX name-related processes all kill the process is what

Kill-9 $ (pgrep-f xxx)

20180504 Morning Lesson Records 03-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.