基础组件
sudo yum -y install wget git vim zip unzip net-tools lrzsz lsof
开机启动脚本
# 开机启动配置sudo mkdir -p /data/logcd /etc/rc.d/init.d && touch autostart && chmod +x autostartcat >> /etc/rc.d/init.d/autostart << EOF#!/bin/bash# chkconfig: 2345 08 92# description: Descriptionexec 2> /data/log/autostart.log # send stderr from rc.local to a log fileexec 1>&2 # send stdout to the same log fileecho "atuostart started" # show start of executionset -x # open logEOFchkconfig --add autostart && chkconfig autostart oncat >> ~/.zshrc << EOFalias vim-auto='vim /etc/rc.d/init.d/autostart'EOFsource ~/.zshrcecho "执行成功,输入vim-auto即可编辑开机启动的命令"
alias脚本
alias ll='ls -lh'alias size='f(){ du -sh $1* | sort -hr; }; f'alias gz='tar -zcvf'alias ungz='tar -zxvf'alias bz2='tar -jcvf'alias unbz2='tar -jxvf'alias now='date "+%Y-%m-%d %H:%M:%S"'alias vimbashrc='vim ~/.bashrc'alias reloadBashrc='source ~/.bashrc'