Thlorian
Posts: 20
Joined: Mon Jun 08, 2015 8:51 pm

Line command not working

Wed Mar 08, 2017 8:08 pm

OK so I got a rasp pi up and running FINALLY and I am going thru beginner commands, etc.. Every time I enter the ls -1 command to see details of a folder, it's as if the command ignores me and still just shows just the name of the folder with no detaiks....even if I am in sudo mode... gotta be user error but I can't figure it out???

User avatar
emgi
Posts: 357
Joined: Thu Nov 07, 2013 4:08 pm
Location: NL

Re: Line command not working

Wed Mar 08, 2017 8:11 pm

Give it a try with the letter that looks almost the same...
Otherwise, try

Code: Select all

man ls
/emgi

klricks
Posts: 6510
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Line command not working

Wed Mar 08, 2017 8:12 pm

It is ls -l (ell) not ls-1(one)
Unless specified otherwise my response is based on the latest and fully updated Raspbian Buster w/ Desktop OS.

gordon77
Posts: 4081
Joined: Sun Aug 05, 2012 3:12 pm

Re: Line command not working

Wed Mar 08, 2017 8:12 pm

Do you need ls -l not ls -1?

Thlorian
Posts: 20
Joined: Mon Jun 08, 2015 8:51 pm

Re: Line command not working

Thu Mar 09, 2017 2:49 am

Well don't I feel sheepish! Thanks folks as user error on this one ... I was using the number 1 ... :mrgreen:

tech-mech
Posts: 114
Joined: Sun Feb 23, 2014 9:51 pm
Location: Portland, Oregon USA
Contact: Yahoo Messenger

Re: Line command not working

Thu Mar 09, 2017 7:23 am

This is the fun of the command line. Some fonts are worse than others. Is it a1 or an l, is it a 0, O, or o.

On longer command line strings from web sites it can be very hard to get it right. It would help if people who post the commands with confusing letters that are similar to numbers would add a note as to what is intended.

Dale

User avatar
PeterO
Posts: 4882
Joined: Sun Jul 22, 2012 4:14 pm

Re: Line command not working

Thu Mar 09, 2017 7:32 am

A Tip : Cut and Paste the command text into a console window, or an editor , or something else where you can select the font and size. Sadly this doesn't help with printed materials which can be some of the worst offenders for using inappropriate fonts!

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

Return to “Beginners”