Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
ls suddenly changed behavior
ls suddenly changed behavior
i liked the default sorting of ls but now when i use ls i get the content sorted as a list
( have no idea how this come to be everything looks good in .bashrc )
anyway is there any thoughts of getting it back to normal?
( have no idea how this come to be everything looks good in .bashrc )
anyway is there any thoughts of getting it back to normal?
Re: ls suddenly changed behavior
It will help you a lot to get answers when you tell us how it was before and how it is now. Also if you have done any upgrade in the meantime.
Have a nice day!
Re: ls suddenly changed behavior
for example the ls that was before :cronoik wrote:It will help you a lot to get answers when you tell us how it was before and how it now. Also if you have done any upgrade in the meantime.
Code: Select all
ls
[b]directory1 directory2 directory3 directory4
directory 5[/b]
Code: Select all
ls
directory1
directory2
directory3
...
after weeks i didnt do
Re: ls suddenly changed behavior
Are you piping the output or are you using a terminal? Do you use stretch now?
Please run:
Please run:
Code: Select all
type ls
Have a nice day!
Re: ls suddenly changed behavior
debian 9 stretchcronoik wrote:Are you piping the output or are you using a terminal? Do you use stretch now?
Please run:Code: Select all
type ls
ls is aliased to ls --auto color
Re: ls suddenly changed behavior
? I'm asking this question because the beheaviour of ls differs depending on the output application. See the documentation of ls:cronoik wrote:Are you piping the output or are you using a terminal?
How does the output of ls looks when you run it in xterm?https://www.gnu.org/software/coreutils/manual/html_node/ls-invocation.html#FOOT4 wrote:...If standard output is a terminal, the output is in columns (sorted vertically) and control characters are output as question marks; otherwise, the output is listed one per line and control characters are output as-is....
Have a nice day!
Re: ls suddenly changed behavior
in Xterm the same problem..cronoik wrote:? I'm asking this question because the beheaviour of ls differs depending on the output application. See the documentation of ls:cronoik wrote:Are you piping the output or are you using a terminal?How does the output of ls looks when you run it in xterm?https://www.gnu.org/software/coreutils/manual/html_node/ls-invocation.html#FOOT4 wrote:...If standard output is a terminal, the output is in columns (sorted vertically) and control characters are output as question marks; otherwise, the output is listed one per line and control characters are output as-is....
im not piping the command to anything just launching "ls"
Re: ls suddenly changed behavior
You could alias ls to ls -C by adding:
to ~/.bash_aliases.
Then
to update your system to your new ~/.bash_aliases file without rebooting.
That should give you standard column listings from ls.
or, assuming it is aliased in your ~./bashrc file, you could add the -C to the alias entry there. Then run
Code: Select all
alias ls='ls -C --color=auto'
Then
Code: Select all
source ~/.bash_aliases
That should give you standard column listings from ls.
or, assuming it is aliased in your ~./bashrc file, you could add the -C to the alias entry there. Then run
Code: Select all
source ~/.bashrc