docker鏡像不支持常用命令


ll就是其中一個

方法:修改.bashrc

nano ~/.bashrc

# ~/.bashrc: executed by bash(1) for non-login shells.

# Note: PS1 and umask are already set in /etc/profile. You should not
# need this unless you want different defaults for root.
# PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ '
# umask 022

# You may uncomment the following lines if you want `ls' to be colorized:
# export LS_OPTIONS='--color=auto'
# eval "`dircolors`"
# alias ls='ls $LS_OPTIONS'
# alias ll='ls $LS_OPTIONS -l' 
# alias l='ls $LS_OPTIONS -lA'
#
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'
————————————————
版權聲明:本文為CSDN博主「Dogfish」的原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/dogfish/article/details/54881007
#alias ll='ls $LS_OPTIONS -l' 對這一行取消注釋
然后記得 source ~/.bashrc,完事

vs code是基於SSH對服務器進行連接,保存后就可以通過CONNECTION側邊欄進行連接了,所以建議通過把本機的 ssh 公鑰添加到服務器的 authorized_keys 文件中,具體的操作流程請百度 “ssh公鑰連接


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM