Find the answer to your Linux question:
Results 1 to 3 of 3
I'm trying to format the output of ls -l, any help is appreciated [david@barca boot]$ ls efi grub david@barca boot]$ cd efi/ [david@barca efi]# ls EFI [david@barca efi]# cd ../grub ...
  1. #1
    Just Joined!
    Join Date
    Jun 2008
    Posts
    58

    ls -l

    I'm trying to format the output of ls -l, any help is appreciated

    [david@barca boot]$ ls
    efi
    grub

    david@barca boot]$ cd efi/
    [david@barca efi]# ls
    EFI
    [david@barca efi]# cd ../grub
    [david@barca grub]# ls
    device.map
    now to long list files in each directory using one line:

    [david@barca boot]$ ls -l *
    efi:
    total 2
    drwxr-xr-x. 3 root root 1024 May 13 2010 EFI

    grub:
    total 319
    -rw-r--r--. 1 root root 70 Oct 26 17:12 device.map
    How can I format the output of ls to get it all in single lines:

    drwxr-xr-x. 3 root root 1024 May 13 2010 efi/EFI
    -rw-r--r--. 1 root root 70 Oct 26 17:12 grub/device.map
    Any thoughts?

  2. #2
    Linux Enthusiast
    Join Date
    Apr 2004
    Location
    UK
    Posts
    658
    Code:
    find -ls
    Does that do what you need?

    Let us know how you get on.
    To be good, you must first be bad. "Newbie" is a rank, not a slight.

  3. #3
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,229
    Hi!

    Is this what you are trying to do?

    Code:
    $ cd /
    $ ls -la
    nujinini
    Linux User #489667

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...