Bash-it

What's the issue in my “adduser” from another file bash script

↘锁芯ラ 提交于 2020-12-27 01:04:30
问题 I am asked to add some users with all their info (password , id ,group id ...) present in a given file. Whenever I run my bash "gedit" script , it gives me a message that the "useradd command not found". If anyone could help me please , this is my code : #!/bin/bash choice=0 while [ $choice != "1" -a $choice != "2" -a $choice != "3" ] do echo "What do you want to do" echo "1-Add Users" echo "2-Remove users" echo "3-Update users" echo -n "Enter choice : " read choice done x=0 while [ $x -ne 1

Bash-it环境,更快捷的bash配置

那年仲夏 提交于 2020-04-06 20:50:23
Bash-it 包含的东西有 autocompletion, themes aliases custom functions a few stolen pieces from Steve Losh and more. Bash-it安装 1.下载 git clone https://github .com /revans/bash-it .git ~/ .bash _it 2.安装 ~/ .bash _it/install .sh 3.配置,只需要编辑 ~/ .bash _profile Bash-it 帮助 下面是一些常用的帮助 bash- it show aliases # shows installed and available aliases bash- it show completions # shows installed and available completions bash- it show plugins # shows installed and available plugins bash- it help aliases # shows help for installed aliases bash- it help completions # shows help for installed completions bash- it help