当我通过 SSH 进入服务器时,除了 root 之外,它只显示 $ 而不是路径。当我不以 root 身份通过 SSH 登录时,它也不允许我按下向上键并查看命令历史记录。我如何向其他用户提供上述选项?
linux ssh debian shell
我正在尝试制作一个脚本来备份我的服务器,但我对 bash 脚本的了解非常有限。我希望脚本将备份文件命名为 ht-“今天的日期”。我该怎么做?是否可以将命令(例如 date 命令)用作变量?
script bash shell bash-scripting
shell ×2
bash ×1
bash-scripting ×1
debian ×1
linux ×1
script ×1
ssh ×1