Results 1 to 3 of 3

Thread: Small Problem: List Directory in DOS-type

  1. #1
    Junior Member registered user
    Join Date
    Sep 2005
    Posts
    10

    Small Problem: List Directory in DOS-type

    Helllo guys,

    im searching for the correct linux command, listing directory contents in iso9660 type. so that long names are converted to 8.3 format.
    Any ideas? Please help. I've already done it .. but that's long ago. I think there's a quite simpel solution.

  2. #2
    Senior Member registered user
    Join Date
    Dec 2003
    Location
    Salt Lake City, UT, U.S.A.
    Posts
    1,338
    floschi

    You can always use the manual pages, to get help for most of the commands...

    Like this:
    man ls

    my personal favorite ls command is:
    ls -la

    ( which, will list out the contents of a current directory, in long file format, and all files - this includes files that start will the dot, or period )

    If you prefer not to see the (dot) files, then the command would simply be:
    ls -l

    To add the recursive listing of folders below the current folder, use the following:
    ls -lRa

    ( note the upper case R in the options on the command line )

    Lastly, to get a listing of a folder that is not the current folder, append the path to the end of the command... Like this:
    ls -lRa /etc/init.d

    Hopefully, this helps,
    Ms. Cuddles

  3. #3
    Senior Member registered user
    Join Date
    Apr 2004
    Location
    Germany
    Posts
    100
    <humor>
    Below code should help (needs mods I don't have time for now):
    ls -1|perl -pe'index($_,".")>6?s/([^.]{1,6}).*\./$1~1./:$_;s/^([^.]*).(...).*$/$1.$2/'
    </humor>

    Sorry, could not resist
    --
    $ To set up this Linux system, do I really have to type long, cryptic, frequently inconsistent
    and undocumented commands with occasional long strings of hex digits?
    # Yes. Do you have a problem with that?

Similar Threads

  1. device manage type list in knoppix
    By bharat in forum Hardware & Booting
    Replies: 2
    Last Post: 09-15-2006, 07:24 PM
  2. Small problem
    By Sass in forum Customising & Remastering
    Replies: 0
    Last Post: 09-18-2005, 08:57 AM
  3. Small problem with kPPP
    By HumanBlade in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 04-02-2004, 08:08 AM
  4. Problem when change keyboard type with Kxkb
    By vmedina in forum Customising & Remastering
    Replies: 0
    Last Post: 02-11-2004, 05:35 PM
  5. Small USB/camera problem.
    By spydie in forum General Support
    Replies: 14
    Last Post: 01-31-2004, 07:55 PM

Posting Permissions

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


Juniper SRX650 VPN Firewall Security Hub SRX650-BASE-SRE6-645AP w/SRX-GP-IM picture

Juniper SRX650 VPN Firewall Security Hub SRX650-BASE-SRE6-645AP w/SRX-GP-IM

$99.99



Juniper MX-MPC2-3D-A Router Card + MIC-3D-4XGE-XFP-A & MIC-3D-20GE-SFP picture

Juniper MX-MPC2-3D-A Router Card + MIC-3D-4XGE-XFP-A & MIC-3D-20GE-SFP

$799.99



JUNIPER EX3400-48P 48x 1GB PoE+ RJ-45 4x 10GB SFP+ 2x 40GB QSFP+, DUAL AC POWER picture

JUNIPER EX3400-48P 48x 1GB PoE+ RJ-45 4x 10GB SFP+ 2x 40GB QSFP+, DUAL AC POWER

$210.00



Juniper Networks EX4300-48T 48 Port Gigabit 4 QSFP 40G 2xPSU AFO Network Switch picture

Juniper Networks EX4300-48T 48 Port Gigabit 4 QSFP 40G 2xPSU AFO Network Switch

$89.00



Juniper Networks EX3300 EX3300-48P 48-Port Gigabit PoE+ Switch picture

Juniper Networks EX3300 EX3300-48P 48-Port Gigabit PoE+ Switch

$40.18



Juniper EX2300-24P Poe+ Rack Mountable Ethernet Switch picture

Juniper EX2300-24P Poe+ Rack Mountable Ethernet Switch

$130.00



Juniper Networks EX3300-24P | 24 Port Gigabit Network Switch w/ Power cord picture

Juniper Networks EX3300-24P | 24 Port Gigabit Network Switch w/ Power cord

$53.99



Juniper Networks EX2300-C 12-Port 2XSFP Uplinks PoE+ Switch P/N: EX2300-C-12P picture

Juniper Networks EX2300-C 12-Port 2XSFP Uplinks PoE+ Switch P/N: EX2300-C-12P

$299.99



Juniper QFX5100-48T-AFO   48 100M/1G/10G Base-T 6 QSFP AFO picture

Juniper QFX5100-48T-AFO 48 100M/1G/10G Base-T 6 QSFP AFO

$485.00



Juniper Networks EX3400-48T 48 Port Gigabit 4 SFP 1/10G Network Switch #73 picture

Juniper Networks EX3400-48T 48 Port Gigabit 4 SFP 1/10G Network Switch #73

$239.99