摘要:
问题描述:安装好Ubuntu20.04之后,想使用python,只能输入python3,输入python没有用处,如下图 为了少写一个字符,必须把"python3 变成python" 1.找到输入命令python3执行的二进制文件 which python3 2.进入/usr/bin/目录查找与py 阅读全文
posted @ 2023-05-17 20:09
Guanjie255
阅读(1396)
评论(1)
推荐(1)
摘要:
1.何谓提示符的颜色.如下图 用户名的颜色,@符号的颜色,主机名的颜色,当前目录的颜色都可以通过变量PS1来控制 2.在/home/sgj/.bashrc中设置PS1的值 PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\03 阅读全文
posted @ 2023-05-17 19:09
Guanjie255
阅读(62)
评论(0)
推荐(0)
摘要:
# 开启防火墙 sudo ufw enable# 开启22号端口 sudo ufw allow 22 # 重启防火墙 sudo ufw reload # 查看状态 sudo ufw status # 安装ssh sudo apt install openssh-server# 尝试能否远程登录ssh 阅读全文
posted @ 2023-05-17 15:50
Guanjie255
阅读(71)
评论(0)
推荐(0)
摘要:
1.查看原来的path环境变量的内容 echo $PATH 2.将路径 /home/sgj/.local/bin添加到path环境变量中 # 打开/etc/profile问价 sudo /etc/profile 3.在最后一行输入以下内容 export PATH=/home/sgj/.local/b 阅读全文
posted @ 2023-05-17 15:43
Guanjie255
阅读(179)
评论(0)
推荐(0)

浙公网安备 33010602011771号