在openeuler服務器執行 ls 和ll 命令報錯 command not found...
?大概是系統環境變量導致的問題。
我在安裝redis是否沒有安裝成功后就出現了這樣的情況。編輯profile文件沒有寫正確,導致在命令行下ls 和 ll 等命令不能夠識別。
重新設置一下環境變量。
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
執行以后。
?ll 命令可以使用了。
或者/etc/profile 添加上面的內容
執行 source /etc/profile。