Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Problems with ls Lab
New Posts  All Forums:Forum Nav:

Problems with ls Lab

post #1 of 8
Thread Starter 
Here is the question:
Quote:
Use the ls command (with the appropriate command line switches) to obtain a recursive listing, including sizes (-s), of the contents of the /usr/share/gedit-2 directory. Redirect the command's output to a file in your home directory called lsgedit.txt. (For grading purposes, it is important that you specify the directory as an absolute reference, i.e., not share/gedit-2).

Here is my copied lsgedit.txt
http://pastebin.com/vS2XQsZp

However, I keep getting a 0 on that specific part of the lab. :|

I don't exactly see what I am doing wrong. I got a recursive listing, and sizes.

Can someone explain what I am doing wrong?
Gaming
(23 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1090T Crosshair IV Formula GTX 560 GTX 580 
RAMRAMRAMRAM
G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI  G. Skill F3-12800CL6D-4GBPI 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Hard Drive Seagate Hard Drive Crucial M4 SSD Sony Optiarc 
CoolingOSMonitorMonitor
Corsair H70 Windows 7 Professional x64 ASUS VH242H 23" Monitor ASUS VH242H 23" Monitor 
MonitorKeyboardPowerCase
Samsung SyncMaster 906BW 19" Monitor Logitech G15 Corsair 1K PSU Lian-Li 70A 
MouseMouse PadAudio
Logitech Performance MX Razer Vespula HT Omega Pro+ 
  hide details  
Reply
Gaming
(23 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1090T Crosshair IV Formula GTX 560 GTX 580 
RAMRAMRAMRAM
G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI  G. Skill F3-12800CL6D-4GBPI 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Hard Drive Seagate Hard Drive Crucial M4 SSD Sony Optiarc 
CoolingOSMonitorMonitor
Corsair H70 Windows 7 Professional x64 ASUS VH242H 23" Monitor ASUS VH242H 23" Monitor 
MonitorKeyboardPowerCase
Samsung SyncMaster 906BW 19" Monitor Logitech G15 Corsair 1K PSU Lian-Li 70A 
MouseMouse PadAudio
Logitech Performance MX Razer Vespula HT Omega Pro+ 
  hide details  
Reply
post #2 of 8
can you put in the command exactly as you typed it to get your recursive list?
The King
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II 1090T BE Asus M4A89GTD PRO MSI GTX 460 1gb underwater Corsair XM3 1333 10660 MHz(8 gb) 
Hard DriveOptical DriveOSMonitor
2 Seagate Barracuda 7200 3Gb/s 1TB each LG sata dvd+rw windows 7 ultimate x64 Dell 2005fpw/Samsung Syncmaster 
KeyboardPowerCaseMouse
logitech g15 v1 XFX 850w Black Edition Corsair 800D Microsoft Sidewinder 
Mouse Pad
Banshee Pad 
  hide details  
Reply
The King
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II 1090T BE Asus M4A89GTD PRO MSI GTX 460 1gb underwater Corsair XM3 1333 10660 MHz(8 gb) 
Hard DriveOptical DriveOSMonitor
2 Seagate Barracuda 7200 3Gb/s 1TB each LG sata dvd+rw windows 7 ultimate x64 Dell 2005fpw/Samsung Syncmaster 
KeyboardPowerCaseMouse
logitech g15 v1 XFX 850w Black Edition Corsair 800D Microsoft Sidewinder 
Mouse Pad
Banshee Pad 
  hide details  
Reply
post #3 of 8
Thread Starter 
ls -Rs /usr/share/gedit-2/ > lsgedit.txt
Gaming
(23 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1090T Crosshair IV Formula GTX 560 GTX 580 
RAMRAMRAMRAM
G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI  G. Skill F3-12800CL6D-4GBPI 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Hard Drive Seagate Hard Drive Crucial M4 SSD Sony Optiarc 
CoolingOSMonitorMonitor
Corsair H70 Windows 7 Professional x64 ASUS VH242H 23" Monitor ASUS VH242H 23" Monitor 
MonitorKeyboardPowerCase
Samsung SyncMaster 906BW 19" Monitor Logitech G15 Corsair 1K PSU Lian-Li 70A 
MouseMouse PadAudio
Logitech Performance MX Razer Vespula HT Omega Pro+ 
  hide details  
Reply
Gaming
(23 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1090T Crosshair IV Formula GTX 560 GTX 580 
RAMRAMRAMRAM
G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI  G. Skill F3-12800CL6D-4GBPI 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Hard Drive Seagate Hard Drive Crucial M4 SSD Sony Optiarc 
CoolingOSMonitorMonitor
Corsair H70 Windows 7 Professional x64 ASUS VH242H 23" Monitor ASUS VH242H 23" Monitor 
MonitorKeyboardPowerCase
Samsung SyncMaster 906BW 19" Monitor Logitech G15 Corsair 1K PSU Lian-Li 70A 
MouseMouse PadAudio
Logitech Performance MX Razer Vespula HT Omega Pro+ 
  hide details  
Reply
post #4 of 8
try it as ls -R -s /usr/share/gedit-2/ > lsgedit.txt
The King
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II 1090T BE Asus M4A89GTD PRO MSI GTX 460 1gb underwater Corsair XM3 1333 10660 MHz(8 gb) 
Hard DriveOptical DriveOSMonitor
2 Seagate Barracuda 7200 3Gb/s 1TB each LG sata dvd+rw windows 7 ultimate x64 Dell 2005fpw/Samsung Syncmaster 
KeyboardPowerCaseMouse
logitech g15 v1 XFX 850w Black Edition Corsair 800D Microsoft Sidewinder 
Mouse Pad
Banshee Pad 
  hide details  
Reply
The King
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II 1090T BE Asus M4A89GTD PRO MSI GTX 460 1gb underwater Corsair XM3 1333 10660 MHz(8 gb) 
Hard DriveOptical DriveOSMonitor
2 Seagate Barracuda 7200 3Gb/s 1TB each LG sata dvd+rw windows 7 ultimate x64 Dell 2005fpw/Samsung Syncmaster 
KeyboardPowerCaseMouse
logitech g15 v1 XFX 850w Black Edition Corsair 800D Microsoft Sidewinder 
Mouse Pad
Banshee Pad 
  hide details  
Reply
post #5 of 8
Thread Starter 
That worked, thank you very much.

Why did the extra flag matter?
Gaming
(23 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1090T Crosshair IV Formula GTX 560 GTX 580 
RAMRAMRAMRAM
G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI  G. Skill F3-12800CL6D-4GBPI 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Hard Drive Seagate Hard Drive Crucial M4 SSD Sony Optiarc 
CoolingOSMonitorMonitor
Corsair H70 Windows 7 Professional x64 ASUS VH242H 23" Monitor ASUS VH242H 23" Monitor 
MonitorKeyboardPowerCase
Samsung SyncMaster 906BW 19" Monitor Logitech G15 Corsair 1K PSU Lian-Li 70A 
MouseMouse PadAudio
Logitech Performance MX Razer Vespula HT Omega Pro+ 
  hide details  
Reply
Gaming
(23 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1090T Crosshair IV Formula GTX 560 GTX 580 
RAMRAMRAMRAM
G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI  G. Skill F3-12800CL6D-4GBPI 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Hard Drive Seagate Hard Drive Crucial M4 SSD Sony Optiarc 
CoolingOSMonitorMonitor
Corsair H70 Windows 7 Professional x64 ASUS VH242H 23" Monitor ASUS VH242H 23" Monitor 
MonitorKeyboardPowerCase
Samsung SyncMaster 906BW 19" Monitor Logitech G15 Corsair 1K PSU Lian-Li 70A 
MouseMouse PadAudio
Logitech Performance MX Razer Vespula HT Omega Pro+ 
  hide details  
Reply
post #6 of 8
What exactly is your instructor looking for?

I am sitting here with my step dad here and I am asking him to see if he can help you.


He said to do the following:

ls -Rs /usr/share/gedit-2 > lsgedit.txt


Do not put the forward slash after gedit-2 because it is telling it to stop. Leave that out and you should be good to go.
 
Gsvlip Dudyrm
(15 items)
 
Oda'maksv
(9 items)
 
CPUMotherboardGraphicsRAM
3770k @ 4.5 1.312 load Zotac Z77 ITX Wifi GTX 1070 Gaming 2126/2249 w/ Hybrid cooler TridentX 16GB 2400MHz 
Hard DriveHard DriveCoolingCooling
Samsung 850 Pro 1TB Seagate 2TB H105 EVGA Hybrid GPU cooler 
OSMonitorKeyboardPower
Windows 10 Asus MG279Q - 24" 144Hz 1080p Filco Majestic II w/ Cherry Reds Seasonic X 760W 
CaseMouseMouse PadAudio
Bitfelix Prodigy Logitech G400 Razer Goliath AKG A701 
AudioAudio
JDS Labs Objective 2 JDS Labs ODAC 
CPUMotherboardGraphicsRAM
Core i5 750 3.99 (190x21) 1.376v Load ASUS P7P55d-E Pro GTX 670 FTW <- Poor overclocker :( 8GB (4x2GB) G.Skill DDR3 1600 
Hard DriveHard DriveOptical DriveOS
Samsung 830 Evo 128GB 2x 2TB  Some DVD drive OSX 10.10.4 
MonitorPowerCaseMouse
Asus 1080P Crap TX 750 HAF 922 G400s 
Mouse PadOther
Apple Keyboard Xbox One controler 
CPURAMHard DriveHard Drive
C2D 2,26GHz under volted @ .978v 8GB  Crucial M4 64GB SSD 500GB Scorpio Black 
OSMonitorKeyboardMouse
OS X 10.0 1280x800 Built-in Trackpad 
Audio
Built-in 
  hide details  
Reply
 
Gsvlip Dudyrm
(15 items)
 
Oda'maksv
(9 items)
 
CPUMotherboardGraphicsRAM
3770k @ 4.5 1.312 load Zotac Z77 ITX Wifi GTX 1070 Gaming 2126/2249 w/ Hybrid cooler TridentX 16GB 2400MHz 
Hard DriveHard DriveCoolingCooling
Samsung 850 Pro 1TB Seagate 2TB H105 EVGA Hybrid GPU cooler 
OSMonitorKeyboardPower
Windows 10 Asus MG279Q - 24" 144Hz 1080p Filco Majestic II w/ Cherry Reds Seasonic X 760W 
CaseMouseMouse PadAudio
Bitfelix Prodigy Logitech G400 Razer Goliath AKG A701 
AudioAudio
JDS Labs Objective 2 JDS Labs ODAC 
CPUMotherboardGraphicsRAM
Core i5 750 3.99 (190x21) 1.376v Load ASUS P7P55d-E Pro GTX 670 FTW <- Poor overclocker :( 8GB (4x2GB) G.Skill DDR3 1600 
Hard DriveHard DriveOptical DriveOS
Samsung 830 Evo 128GB 2x 2TB  Some DVD drive OSX 10.10.4 
MonitorPowerCaseMouse
Asus 1080P Crap TX 750 HAF 922 G400s 
Mouse PadOther
Apple Keyboard Xbox One controler 
CPURAMHard DriveHard Drive
C2D 2,26GHz under volted @ .978v 8GB  Crucial M4 64GB SSD 500GB Scorpio Black 
OSMonitorKeyboardMouse
OS X 10.0 1280x800 Built-in Trackpad 
Audio
Built-in 
  hide details  
Reply
post #7 of 8
the reason it worked is because the grading system is flawed: it doesnt recognize that you put the -R and -s tags together as -Rs, but instead wanted you to separate the tags into -R and -s


edit: well, I'm glad it all worked out for ya! if you need any more assistance with commands, I may be able to help
Edited by kingofyo1 - 1/28/11 at 8:39pm
The King
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II 1090T BE Asus M4A89GTD PRO MSI GTX 460 1gb underwater Corsair XM3 1333 10660 MHz(8 gb) 
Hard DriveOptical DriveOSMonitor
2 Seagate Barracuda 7200 3Gb/s 1TB each LG sata dvd+rw windows 7 ultimate x64 Dell 2005fpw/Samsung Syncmaster 
KeyboardPowerCaseMouse
logitech g15 v1 XFX 850w Black Edition Corsair 800D Microsoft Sidewinder 
Mouse Pad
Banshee Pad 
  hide details  
Reply
The King
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II 1090T BE Asus M4A89GTD PRO MSI GTX 460 1gb underwater Corsair XM3 1333 10660 MHz(8 gb) 
Hard DriveOptical DriveOSMonitor
2 Seagate Barracuda 7200 3Gb/s 1TB each LG sata dvd+rw windows 7 ultimate x64 Dell 2005fpw/Samsung Syncmaster 
KeyboardPowerCaseMouse
logitech g15 v1 XFX 850w Black Edition Corsair 800D Microsoft Sidewinder 
Mouse Pad
Banshee Pad 
  hide details  
Reply
post #8 of 8
Same here. Stepdad use to work as a backup engineer or something (up to late 2000 or so) and knows Linux, Windows, and Mac practically inside out (linux and mac even more so than windows). Got questions I will be sure to ask him.
 
Gsvlip Dudyrm
(15 items)
 
Oda'maksv
(9 items)
 
CPUMotherboardGraphicsRAM
3770k @ 4.5 1.312 load Zotac Z77 ITX Wifi GTX 1070 Gaming 2126/2249 w/ Hybrid cooler TridentX 16GB 2400MHz 
Hard DriveHard DriveCoolingCooling
Samsung 850 Pro 1TB Seagate 2TB H105 EVGA Hybrid GPU cooler 
OSMonitorKeyboardPower
Windows 10 Asus MG279Q - 24" 144Hz 1080p Filco Majestic II w/ Cherry Reds Seasonic X 760W 
CaseMouseMouse PadAudio
Bitfelix Prodigy Logitech G400 Razer Goliath AKG A701 
AudioAudio
JDS Labs Objective 2 JDS Labs ODAC 
CPUMotherboardGraphicsRAM
Core i5 750 3.99 (190x21) 1.376v Load ASUS P7P55d-E Pro GTX 670 FTW <- Poor overclocker :( 8GB (4x2GB) G.Skill DDR3 1600 
Hard DriveHard DriveOptical DriveOS
Samsung 830 Evo 128GB 2x 2TB  Some DVD drive OSX 10.10.4 
MonitorPowerCaseMouse
Asus 1080P Crap TX 750 HAF 922 G400s 
Mouse PadOther
Apple Keyboard Xbox One controler 
CPURAMHard DriveHard Drive
C2D 2,26GHz under volted @ .978v 8GB  Crucial M4 64GB SSD 500GB Scorpio Black 
OSMonitorKeyboardMouse
OS X 10.0 1280x800 Built-in Trackpad 
Audio
Built-in 
  hide details  
Reply
 
Gsvlip Dudyrm
(15 items)
 
Oda'maksv
(9 items)
 
CPUMotherboardGraphicsRAM
3770k @ 4.5 1.312 load Zotac Z77 ITX Wifi GTX 1070 Gaming 2126/2249 w/ Hybrid cooler TridentX 16GB 2400MHz 
Hard DriveHard DriveCoolingCooling
Samsung 850 Pro 1TB Seagate 2TB H105 EVGA Hybrid GPU cooler 
OSMonitorKeyboardPower
Windows 10 Asus MG279Q - 24" 144Hz 1080p Filco Majestic II w/ Cherry Reds Seasonic X 760W 
CaseMouseMouse PadAudio
Bitfelix Prodigy Logitech G400 Razer Goliath AKG A701 
AudioAudio
JDS Labs Objective 2 JDS Labs ODAC 
CPUMotherboardGraphicsRAM
Core i5 750 3.99 (190x21) 1.376v Load ASUS P7P55d-E Pro GTX 670 FTW <- Poor overclocker :( 8GB (4x2GB) G.Skill DDR3 1600 
Hard DriveHard DriveOptical DriveOS
Samsung 830 Evo 128GB 2x 2TB  Some DVD drive OSX 10.10.4 
MonitorPowerCaseMouse
Asus 1080P Crap TX 750 HAF 922 G400s 
Mouse PadOther
Apple Keyboard Xbox One controler 
CPURAMHard DriveHard Drive
C2D 2,26GHz under volted @ .978v 8GB  Crucial M4 64GB SSD 500GB Scorpio Black 
OSMonitorKeyboardMouse
OS X 10.0 1280x800 Built-in Trackpad 
Audio
Built-in 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Problems with ls Lab