LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-19-2010, 03:43 PM   #1
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
ls output


How to make "ls -a" not mix dot files with other files?

How to make it put all dot files first, or sort "ASCIIbetically"?
 
Old 05-19-2010, 04:38 PM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
It does sort "ASCIIbetically" for me -- if you read down the first column first, down the second etc. This on Slackware 13.0.
 
Old 05-19-2010, 04:49 PM   #3
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Not for me:

Code:
~$ ls --version
ls (GNU coreutils) 8.5
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Richard M. Stallman and David MacKenzie.
~$ ls -a
.              .fontconfig      .java                .siag
..             .frozen-bubble   .kchmviewer          .sidplay
.AbiSuite      .fvwm            .kde                 .subversion
.adobe         .fvwm-metisse    .kde4                .supertux2
.bash_history  .gconf           .lesshst             svn
.bash_profile  .gconfd          .links               .swo
.bashrc        .ghc             .local               .swp
bin            .gimp-2.6        .lyx                 .temp
.blackboxrc    git              .macromedia          .texlive
Books          .gitconfig       .marble              .themes
.byobu         .gitk            .mc                  .thumbnails
.cabal         .gksu.lock       .miro                .twmrc
.cache         .glipper-old     Movies               .viminfo
cmaketut       .gmrun_history   .mozilla             .vimrc
.config        .gnome           .mplayer             .VirtualBox
.conkyrc       .gnome2          .nautilus            .w3m
.cpan          .gnome2_private  .nedit               .wallpaper
.dbus          .gnupg           .neverball           .wmii-3.5
Desktop        .gstreamer-0.10  .openoffice.org      .Xauthority
Dev            .gtk-bookmarks   .pekwm               .xchat2
.dia           .gtkrc-2.0       Pictures             .xdvirc
.dmenu_cache   .gvfs            .pingus              .xine
Documents      .hplip           .pki                 .xinitrc
Downloads      .ICEauthority    public_html          .xinitrc.backup
.esd_auth      .icons           .qt                  .Xmodmap
.fehrc         .idlerc          .recently-used.xbel  .xscreensaver
.fluxbox       im               .screenrc            .xvidcaprc
 
Old 05-19-2010, 05:20 PM   #4
blue_print
Member
 
Registered: May 2010
Location: In world
Distribution: RHEL, CentOS, Ubuntu
Posts: 275
Blog Entries: 3

Rep: Reputation: 50
Looks like you're expecting this command to work.

ls -avl

Have a try on your system with this command.
 
1 members found this post helpful.
Old 05-19-2010, 05:23 PM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
-v worked!

I'm going to add it as an alias to my .bashrc.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Getting xdebug 2.0.5 switch text output to html output lhorace Linux - Server 1 11-01-2009 06:23 PM
How to redirect the output of exec command output in perl? sudhap85 Linux - Newbie 3 08-28-2009 04:35 PM
ps -eH | grep java output in a active passive clustered output johnkalikavunkal Linux - Server 2 01-31-2009 12:21 AM
How do I parse the output of a command that output to standard out? gauol Programming 9 01-17-2008 02:54 PM
the sound gives output when using mic but no output when run a music file medo Debian 0 04-19-2004 08:17 PM


All times are GMT -5. The time now is 02:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration