1. Auto Mount
Vi/etc/fstab
/dev/sdb1/mnt ext4 Defaults 0 0 automatically mounts the SBD1 under/MNT
2. modifying the Run level :
Vi/etc/inittab
G --to the last line to modify, the number represents the run level
3. build the yum Warehouse
Vi/etc/yum.repos.d/rhel-source.repo
Modify: Delete last line
Gpgcheck=0
Enabled=1
baseurl=file:///mnt (Disc mount location)
4. Turn off the security system
Setenforce 0
5. Logical Volume expansion
Lvextend-l +200M/DEV/VG0/LV01
if Dh-ht See no change in size
Using RESIZE2FS/DEV/VG0/LV01
6. disk Quotas
Mount-o usrquota,grpquota/dev/vg0/lv01/tmp Mount Lv01 to/tmp
QUOTACHECK-CVUG/DEV/VG0/LV01 Detecting disk quotas
QUOTAON/DEV/VG0/LV01 Open
quotaon-p/dev/vg0/lv01 Check if successful
7. Install Setup network parameter configuration
Yum Install Setuptool
Yum Install System-config-network-tui
Setup Enter Configuration
Vi/etc/sysconfig/network-scripts/ifcfg-eth0
Onboot=0
Ipaddr=
netmask=
gateway=
Save
Service Network Restart Restart the Nic
8. optimize boot entry
(1) Yum install Ntsysv
Ntsysv managing the current run level
NTSYSV--level Management level 3 , Level 5
(2) chkconfig-list View all services default startup status
chkconfig-list Network View Network Service default startup state
chkconfig--level Network off Close * level of Network Service
8. View the process
Ps-aux View Process
Ps-elf
Top Dynamic Refresh process State
pgrep-l "Network" View Network Service Process Information
CP/.. / /.. /& background Run
jobs-l View processes running in the background
crtl+z Push The foreground running process into the background and hang
BG 1 to run the background suspend program in the background
FG 1 Push The background suspend program into the foreground to run
9. terminating the process
pgrep-l ".." First Query the program PID number
Kill (PID number ) Terminating Programs
kill-9 PID number Force Kill program
killall ( program name ) Terminating Programs
Pkill-u Specify user - T Specify Terminal
Ten , Scheduled Tasks
(1) Date View current date
date-s "2014-07-11 9:12:22" Modify the current time to 2014.7.11 9:12:22
At 14:55 Select Scheduled task time is today 14:55
which command name which root directory the query command belongs to
to make a scheduled task, use the absolute path of the command, such as /bin/echo "This is test" >/root/a.txt
ATQ Query A scheduled task that has been set but not yet executed
ATRM Scheduled Task number You can delete a specified scheduled task
(2) crontab Recurring Tasks
Cat/etc/crontab See which tasks are scheduled
crontab-eEdit a scheduled task (by points when Day Month Week in order)
* take value any time
*/3 every 3 days / month / week
1-4 represents 1,2,3,4 , Continuous range
3,4,6,8 discontinuous Range
crontab-l View the list of scheduled tasks for the current user
Crontab-r Clear Scheduled Tasks
Crontab-u Specify which user's scheduled tasks to use for administrators to edit other users ' scheduled Tasks
This article is from the "Ne Road" blog, please be sure to keep this source http://332162926.blog.51cto.com/8831013/1440063
Linux some of the more useful command collation