ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Stupid Simple Trick with "ls"

    IT Discussion
    2
    2
    708
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • thanksajdotcomT
      thanksajdotcom
      last edited by

      I have three different shares that mount into three different folders in /media.. To confirm they had mounted correctly, I will list the contents of each subdirectory to make sure I see files. Well, before I did the following:

      cd /media
      cd goflex_dallas/
      ls
      cd ..
      cd goflex_landcare/
      ls
      cd ..
      cd readyshare_wd4tb/
      ls
      cd ..
      

      However, I decided to try something new and now I can get all the info I need from one command:

      cd /media
      ls goflex_* readyshare_wd4tb/
      

      It outputs as the following:

      goflex_dallas:
      Data Dump               Flash Games  Reformat Prep  Transfers
      Data Dump (Maintained)  Gaming       Temp           treeinfo.wc
      
      goflex_landcare:
      Data Backup (Maintained)  Misc Keep  StorageCraft Backups  Temp  Universal_Updater.exe
      
      readyshare_wd4tb/:
      Data Dump (Maintained)  netgear_downloader  StorageCraft Backups
      Extras                  $RECYCLE.BIN        System Volume Information
      

      It's a stupid simple trick but I thought I'd share!

      Thanks,
      A.J.

      1 Reply Last reply Reply Quote 4
      • DashrenderD
        Dashrender
        last edited by

        that's kinda cool.. thanks for sharing.

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          Last post