 |
|
 |
|
02-27-06 01:48 AM
Learning the wonderfull world of UNIX and have a question I can't answer or
google.After I change the security of a file using the command:
chmod 750 mybiog
I use the command:
ls -1 mybiog
to check and instead of the security attributes:
-rwxr-x--- 1 user group 26 Feb mybiog
I get only the file name. I'm performing it right off the assigned text
with no joy! I'm using the bash shell. Any usefull suggestions?
TIA,
David
[ Post a follow-up to this message ]
|
|
|
 |
|
|
02-27-06 07:48 AM
Gman wrote:
> I use the command:
> ls -1 mybiog
> to check and instead of the security attributes:
> -rwxr-x--- 1 user group 26 Feb mybiog
> I get only the file name. I'm performing it right off the assigned text
> with no joy! I'm using the bash shell. Any usefull suggestions?
references/excerpts:
ls(1)
-l use a long listing format
-1 list one file per line
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
02-27-06 07:48 AM
On 2006-02-27, Gman wrote:
> Learning the wonderfull world of UNIX and have a question I can't answer o
r
> google.After I change the security of a file using the command:
> chmod 750 mybiog
> I use the command:
> ls -1 mybiog
> to check and instead of the security attributes:
> -rwxr-x--- 1 user group 26 Feb mybiog
> I get only the file name.
That's all you are asking for: a listing of filenames, one to a
line.
If you want the detailed listing, use:
ls -l ## That's a lowercase L, not the number one.
> I'm performing it right off the assigned text
> with no joy! I'm using the bash shell. Any usefull suggestions?
--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
02-27-06 07:48 AM
"Chris F.A. Johnson" <cfajohnson@gmail.com> wrote in message
news:ff6ad3-18i.ln1@xword.teksavvy.com...
> On 2006-02-27, Gman wrote:
>
> That's all you are asking for: a listing of filenames, one to a
> line.
>
> If you want the detailed listing, use:
>
> ls -l ## That's a lowercase L, not the number one.
>
>
>
> --
> Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
> Shell Scripting Recipes: | My code in this post, if any,
> A Problem-Solution Approach | is released under the
> 2005, Apress | GNU General Public Licence
Thanks, It always comes down to "attention to detail"
Any idea why when I'm in bash instead of a $ prompt I get a !# prompt?
Thanks again!
David
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
02-27-06 07:48 AM
On 2006-02-27, Gman wrote:
>
> "Chris F.A. Johnson" <cfajohnson@gmail.com> wrote in message
> news:ff6ad3-18i.ln1@xword.teksavvy.com...
>
> Thanks, It always comes down to "attention to detail"
> Any idea why when I'm in bash instead of a $ prompt I get a !# prompt?
Probably because you are logged in as root -- not a good idea.
--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
02-27-06 07:48 AM
On 2006-02-27, Gman <davidg35@REMOVEcox.net> wrote:
> Learning the wonderfull world of UNIX and have a question I can't answer o
r
> google.After I change the security of a file using the command:
> chmod 750 mybiog
> I use the command:
> ls -1 mybiog
> to check and instead of the security attributes:
> -rwxr-x--- 1 user group 26 Feb mybiog
> I get only the file name. I'm performing it right off the assigned text
> with no joy! I'm using the bash shell. Any usefull suggestions?
> TIA,
> David
-[ell], not -[one].
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
02-27-06 07:48 AM
"Gman" <davidg35@REMOVEcox.net> writes:
[...]
> Thanks, It always comes down to "attention to detail"
> Any idea why when I'm in bash instead of a $ prompt I get a !# prompt?
Is it really "!#", not just "#"?
Bash's prompt is determined by the value of the $PS1 variable. This:
echo "$PS1"
will show you its current value. Either it has a literal '#'
character in it, or it has a "\$" sequence, which expands to a '#'
character if you're running as root, or a '$' character if you're not.
(If you're running as root, you probably shouldn't be; use root only
when you actually need it.)
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
02-27-06 07:48 AM
"Keith Thompson" <kst-u@mib.org> wrote in message
news:lny7zx9xzg.fsf@nuthaus.mib.org...
> "Gman" <davidg35@REMOVEcox.net> writes:
> [...]
>
> Is it really "!#", not just "#"?
>
> Bash's prompt is determined by the value of the $PS1 variable. This:
> echo "$PS1"
> will show you its current value. Either it has a literal '#'
> character in it, or it has a "\$" sequence, which expands to a '#'
> character if you're running as root, or a '$' character if you're not.
>
> (If you're running as root, you probably shouldn't be; use root only
> when you actually need it.)
>
> --
> Keith Thompson (The_Other_Keith) kst-u@mib.org
> <http://www.ghoti.net/~kst>
> San Diego Supercomputer Center <*>
> <http://users.sdsc.edu/~kst>
> We must do something. This is something. Therefore, we must do this.
Here's a cut of the screen: gnix:[students/deguenth] !%
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
02-28-06 01:48 AM
On 2006-02-27, Gman <davidg35@REMOVEcox.net> wrote:
>
> "Keith Thompson" <kst-u@mib.org> wrote in message
> news:lny7zx9xzg.fsf@nuthaus.mib.org...
>
> Here's a cut of the screen: gnix:[students/deguenth] !%
what shell are you using? some shells use % instead of $ [why did you
say # when you didn't mean it?]
[ Post a follow-up to this message ]
|
|
|
 |
|
|
02-28-06 01:48 AM
On Sun, 26 Feb 2006 23:50:40 -0700, Gman
<davidg35@REMOVEcox.net> wrote:
>
> Here's a cut of the screen: gnix:[students/deguenth] !%
>
Are you sure you are running bash? Try this:
echo $SHELL
echo $BASH_VERSION
--
A critic is a bundle of biases held loosely together by a sense of taste.
-- Whitney Balliett
[ Post a follow-up to this message ]
|
|
|
 |
|
|
|
|
Sponsored Links |
 |
 |
|
|
 |
All times are GMT. The time now is 01:13 PM. |
 |
|
|
 |
|
 |
|
|
 |
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
|
|
|
|
Medical and Health forum | Computer Games Reviews | Graphics design forum
|
 |
|
 |
|