|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
What does ls /nosuchdir means ???
I do have a segment in my code like follows:
if [ condition ] then ls /nosuchdir fi what does the ls /nosuchdir means ?? |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
provide listing of files
The ls /nosuchdir command will give a listing of files in the /nosuchdir directory. Beware, since the directory is preceded by the / means that you are looking to the root of your system and not referencing from where you are currently.
|
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
Hi joeyg
I doubt whether you are aware /nosuchdir ...
"nosuchdir" is not a directory .. Its a concept in shell scripting.. So please let me know that... |
|
#4
|
||||
|
||||
|
hmmm... what 'concept' is that?
|
| Sponsored Links | |
|
|
#5
|
||||
|
||||
|
Here's a shot in the dark:
Since the file doesn't exist, the 'concept' is a quick and easy method of producing output that also affects the error flags. |
| Sponsored Links | |
|
|
#6
|
||||
|
||||
|
Quote:
Could you elaborate, pls?! |
| Sponsored Links | |
|
|
#7
|
||||
|
||||
|
Check for a condition
If the condition is true Then list files in the directory Perhaps the vagueness, or "conceptualness", is confusing people Provide actual script code |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| !! what is this means | vasuarjula | Shell Programming and Scripting | 4 | 04-28-2009 03:02 AM |
| $$ means? | patiobarbecue | Shell Programming and Scripting | 4 | 12-12-2008 12:40 PM |
| Can anyone tell me what this means..??? | samarn | UNIX for Dummies Questions & Answers | 1 | 11-23-2008 07:46 AM |
| $? means? | mathur | UNIX for Dummies Questions & Answers | 2 | 11-03-2008 06:36 AM |
|
|