server - ls command not working under ubuntu 16.04 - Ask Ubuntu


i looked question of ls command not working in ubuntu 14.04.

i exact same error.

ls: unrecognized option '--color=auto' busybox v1.22.1 (ubuntu 1:1.22.0-15ubuntu1) multicall binary. 

here output of question @eliah kagan asked in comment above question: $mount mount command output

$df -h df h option

type -a ls type -a ls

file /bin/ls file /bin/ls

ls command output

ls: unrecognized option '--color=auto' busybox v1.22.1 (ubuntu 1:1.22.0-15ubuntu1) multicall binary. 

lsb_release output lsb_release output

apt-cache policy coreutils apt-cache policy coreutils

i looking @ grub.cfg , did not save changes when exited, started getting error. can provide pointers of possible fix?

examine current definition of ls

type ls 

it typically respond with

ls aliased `ls --color=auto' 

if not take inside ~/.bashrc , section there default ... if not there put ~/.bashrc

# enable color support of ls , add handy aliases if [ -x /usr/bin/dircolors ];     test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"     alias ls='ls --color=auto'     #alias dir='dir --color=auto'     #alias vdir='vdir --color=auto'      alias grep='grep --color=auto'     alias fgrep='fgrep --color=auto'     alias egrep='egrep --color=auto' fi 

its alias defined default ... shell bash ?

echo $shell 

if shows you

/bin/bash 

then above fix issue ... once done open new terminal or source settings

source ~/.bashrc 

ls ok

if not ok remove ls alias in ~/.bashrc (hint ls coming busybox not adhering standard ls)

~/.bashrccontains personalizations augment system wide default of

/etc/bash.bashrc 

Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User