Author Topic: Use ls -1  (Read 194 times)

Offline showgirl

  • UNIX Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
  • UNIX newbie
    • View Profile
Use ls -1
« on: February 17, 2010, 07:44:25 am »
ls -1

Using the -1 argument to ls will list just file names one per line. Can be useful alone or in pipes to other commands.  If I had a dollar for each time I saw someone use ls -l piped to awk to get the same output you get from ls -1.  I know this is rather simple but I thought it might be useful