Announcement

Collapse
No announcement yet.

Konsole Alphabetical Directory List - 1 File Per Line?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Konsole Alphabetical Directory List - 1 File Per Line?

    Hi,

    How would I do the below in Konsole?:
    Alphabetical directory list with 1 file per line?

    It's for a game my team is working on...

    Jesse

    #2
    ls -1 /path/to/dir-you-want-to-show/if-it-is-not/the-current-dir

    [#]man ls[/#] shows a ton of options for the ls command, for sorting and other things.

    Comment


      #3
      If the output of ls is not a "terminal" (often referred in nix-land as a "tty") the output is one filename per line anyway. F.ex. ls | wc -l gives a count of the files.

      Watch out, though, the default .bashrc for new users has an alias for ls:
      Code:
      alias ls='ls --color=auto'
      IMO this is a bad idea, it can screw up some uses of ls. Bit me once.
      Regards, John Little

      Comment

      Working...
      X