远程登录XShell

ifconfig
sudo apt install net-tools
sudo apt install openssh-server
sudo service ssh start
sudo ps -e | grep ssh
在Ubantu18.04上开启ssh服务,实现远程连接

远程上传下载文件XFtp

运行级别

Ubuntu修改运行级别,与Cenos不一样
指令:init [012356]
以下是CentOs的图解:
image.png

  • 找回root密码:略

    任务调度 crond

    直接写任务和写脚本

    image.png

    指令

  • crontab -e 编辑任务

  • crontab -l 查询任务
  • crontab -r 删除所有任务
  • service crond restart 重启任务调度
    1. # 打开调度文件界面
    2. crontab -e
    3. # 在crontab加入任务
    4. */1 * * * * ls -l /etc >> /tmp/to.txt

    任务事件参数

    image.png
    image.png
    image.png

    进程管理

Shell编程