[{"createTime":1735734952000,"id":1,"img":"hwy_ms_500_252.jpeg","link":"https://activity.huaweicloud.com/cps.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=V1g3MDY4NTY=&utm_medium=cps&utm_campaign=201905","name":"华为云秒杀","status":9,"txt":"华为云38元秒杀","type":1,"updateTime":1735747411000,"userId":3},{"createTime":1736173885000,"id":2,"img":"txy_480_300.png","link":"https://cloud.tencent.com/act/cps/redirect?redirect=1077&cps_key=edb15096bfff75effaaa8c8bb66138bd&from=console","name":"腾讯云秒杀","status":9,"txt":"腾讯云限量秒杀","type":1,"updateTime":1736173885000,"userId":3},{"createTime":1736177492000,"id":3,"img":"aly_251_140.png","link":"https://www.aliyun.com/minisite/goods?userCode=pwp8kmv3","memo":"","name":"阿里云","status":9,"txt":"阿里云2折起","type":1,"updateTime":1736177492000,"userId":3},{"createTime":1735660800000,"id":4,"img":"vultr_560_300.png","link":"https://www.vultr.com/?ref=9603742-8H","name":"Vultr","status":9,"txt":"Vultr送$100","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":5,"img":"jdy_663_320.jpg","link":"https://3.cn/2ay1-e5t","name":"京东云","status":9,"txt":"京东云特惠专区","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":6,"img":"new_ads.png","link":"https://www.iodraw.com/ads","name":"发布广告","status":9,"txt":"发布广告","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":7,"img":"yun_910_50.png","link":"https://activity.huaweicloud.com/discount_area_v5/index.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=aXhpYW95YW5nOA===&utm_medium=cps&utm_campaign=201905","name":"底部","status":9,"txt":"高性能云服务器2折起","type":2,"updateTime":1735660800000,"userId":3}]
任务1进程查看、终止、挂起及暂停等操作
* 使用ps命令显示所有用户的进程。
2.在后台运行cat命令。查看进程cat,并杀死进程。
3.使用top命令只显示某一用户的进程。
4.执行命令cat,按ctrl十z挂起进程,输入 jobs命令查看作业。
5.使用bg命令,把cat切换到后台执行。
6.使用fg命令,把cat切换到前台执行。按ctrl+c结束进程
任务2通过at命令实现计划任务
( 1)5分钟后执行/bin/date,使用atq查询已添加的at计划任务。
(2)查找系统中任何以c为后缀名的文档,将结果保存到$
HOME/findc文件中,指定时间为2019年03月01日早上8点,使用atq查询已添加的at计划任务。
、
(3)列出现有的所有at任务,删除某at任务,并进行查看是否删除。
任务3通过cron命令实现计划任务
* 使用cron命令实现12月每天下午2点系统进行维护状态,重新启动系统
00 14 * 12 * /sbin/shutdown–r
* 使用cron命令实现在12月1号的17点30分查看/etc/passwd内容,并将查看结果送至$HOME/ passtext。
30 17 1 12 4 more /etc/passwd>$HOME/passtext
(3)查看当前的crontab文件。
#crontab -l