LINUX补充

来源:互联网 发布:下载股票交易软件 编辑:程序博客网 时间:2024/05/11 03:05

Linux 分区

df 目录df -hfdisk -lmuont 

shell简述
ls -al /bin/*sh

当前shell:env | grep SHELL切换shell:chsh -s /bin/dash

crontab

/etc/crontabyangzi@yangzi-Lenovo-G450:/etc$ cat crontab # /etc/crontab: system-wide crontab# Unlike any other crontab you don't have to run the `crontab'# command to install the new version when you edit this file# and files in /etc/cron.d. These files also have username fields,# that none of the other crontabs do.SHELL=/bin/shPATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin# m h dom mon dow user  command17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )crontab -e crontab -r crontab -l

Linux 进程
独立的运行空间

ps -aps -ups -xkill XXXkill -9 XXXkillall 进程及子进程top -d 10u which userd interval
date MMDDHHMMCCYY.SScal 4 2020cal 2020

监控网络状态

netstat -anp 
find /home -amin -/+ 10 十分钟内存取的文件或目录find /home -atime -10 10个小时内find /home -cmin -10 10h前find /home -size +10k

通配符
{===}

alias ls -al listallinvisible

压缩解压缩

zip aa.zip filenamezip aa.zip file1 file2 ...zip -r dirzip -m zip file.zip * -x fiaounzip filezip.zipunzip -Z file.zip -l -vgunzip file.gz 或 gzip -d file.gz
0 0
原创粉丝点击