诚捷手游网:专为(Android)安卓手机用户量身打造的安卓游戏、APK游戏下载平台!
网站地图
你的位置: 首页 > 游戏资讯 > 网络安全

linux下二次口令加固,保证系统安全

  • 2023-05-20 05:16:17
  • 来源:互联网
  • 在手机上看

    扫一扫立即进入手机端

  [root@gao ~]# pwd

  /root

  [root@gao ~]# cat .bashrc

  # .bashrc

  # User specific aliases and functions

  alias rm='rm -i'

  alias cp='cp -i'

  alias mv='mv -i'

  # Source global definitions

  if [ -f /etc/bashrc ]; then

  . /etc/bashrc

  fi

  #======================================

  read -p “Input your name: “ name

  if [ $name == “xiaoming“ ];then

  echo “Hello xiaoming“

  date=`date`

  echo “$name $date“ > /root/login.txt

  else

  exit

  fi

  #======================================

手机游戏排行榜