Linux system basics with the Tang notes 5 7.24

Source: Internet
Author: User

Operation Step

1. Disk Partitioning

2. Create physical volumes--list physical volumes--Show physical volume properties

Create Volume Group--list volume group--Show volume group properties

Creating logical Volumes--listing logical volumes--displaying logical volume properties

3. format (create file system)

4. mount and display

Jobs: View background pending jobs

FG [ job number ]

Chkconfig

Binary program :/USR/SBIN/VSFTPD

configuration file :/etc/vsftpd/vsftpd.conf

startup script:/etc/rc.d/init.d/vsftpd

Manual Control Service:

/ETC/RC.D/INIT.D/VSFTPD start

/ETC/RC.D/INIT.D/VSFTPD stop

/ETC/RC.D/INIT.D/VSFTPD status

Servise vsftpd Start

Servise vsftpd Stop

Servise vsftpd Status

Automatic control

# chkconfig-list VSFPD

# chkconfig--level vsftpd on

# ll *vsftpd*

[Email protected] ~]# CD/ETC/RC5.D

[email protected] rc5.d]# ll *vsftpd*

lrwxrwxrwx. 1 root root 7 months 05:56 k50vsftpd. /INIT.D/VSFTPD

[Email protected] rc5.d]# chkconfig--level vsftpd on

[email protected] rc5.d]# ll *vsftpd*

lrwxrwxrwx. 1 root root 7 months 15:43 s60vsftpd. /INIT.D/VSFTPD

[Email protected] rc5.d]#

Kernel:

Chapter

to view process information: PS-EF | Grep

View All processes: ps-a

Show Important information for running processes /processes : Top top [ options ]

kill process:Kill

Kill-l Display signal name

Sleep 999&

Ps-ef | grep sleep

Pstree 21763 ( parent process pid of Sleep)

Kill 23945( pid of sleep )

Jobs: View the status of background jobs press CTRL + Z (closed but background hangs)

Sleep 999&

Kill-9 24069 ( forced kill 24069 process )

BG + Job number example:BG 2

FG + Job number

Chapter VII mission plan

additions and deletions crontab entry:crontab crontab[ options ]

crontab[ Options [ file ]

The sun and the moon cannot be seen together

*/2 * * * *:: Every 2 minutes

#Crontab-E: editing content

#* * * * * echo $ (date) >>/root/test.log: Show Date

#Crontab-L: View content

#Cat/var/spool/cron/root

#cat/var/log/cron

Linux system basics with the Tang notes 5 7.24

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.