Closed treatmesubj closed 1 year ago
I prefer Bash, so for root user, in /etc/passwd I have
/etc/passwd
root:x:0:0:root/root:/bin/bash
I have file /root/.bashrc_john.sh with below contents
/root/.bashrc_john.sh
alias list='ls -a -h -s -1 --color'
I have file /root/.bash_profile with below contents
/root/.bash_profile
source /root/.bashrc_john.sh
When I try list I get
list
ls: unrecognized option: color BusyBox... Usage: ls [...] List directory contents ...
ls -a -h -s -1 --color on its own runs just fine and all the parameters are valid for BusyBox ls
ls -a -h -s -1 --color
ls
/root/.bashrc_john.sh had \r DOS carriage returns, which was causing things to act up
\r
I prefer Bash, so for root user, in
/etc/passwd
I haveI have file
/root/.bashrc_john.sh
with below contentsI have file
/root/.bash_profile
with below contentsWhen I try
list
I getls -a -h -s -1 --color
on its own runs just fine and all the parameters are valid for BusyBoxls