Phred Phungus said:
dan@dan-desktop:~/source42$ chmod u + x t1.pl
chmod: invalid mode: `u'
Try `chmod --help' for more information.
dan@dan-desktop:~/source42$ chmod u+x t1.pl
dan@dan-desktop:~/source42$ ls -l
total 32
-rw-r--r-- 1 dan dan 2556 2010-02-07 18:46 b1.c
-rw-r--r-- 1 dan dan 2555 2010-02-07 18:46 b1.c~
-rwxr-xr-x 1 dan dan 13344 2010-02-07 18:47 out
-rwxr--r-- 1 dan dan 138 2010-02-08 01:34 t1.pl
-rw-r--r-- 1 dan dan 31 2010-02-08 01:30 t1.pl~
[...]
Personally, I find the repeated occurrences of your rather long
shell prompt districting. They make it more difficult to read the
actual information. I'm sure I'm not the only one who thinks so.
I suggest shortening your prompt to something like "$ ". You can
do this by (carefully!) editing the output after you copy-and-paste
it, but that risks losing information. It's probably safer to
change your prompt, run the commands, copy-and-paste the output,
and then change it back. (I'm not suggesting you should change the
prompt for your own use, only for what you post here.)
For example, the above would be:
$ chmod u + x t1.pl
chmod: invalid mode: `u'
Try `chmod --help' for more information.
$ chmod u+x t1.pl
$ ls -l
total 32
-rw-r--r-- 1 dan dan 2556 2010-02-07 18:46 b1.c
-rw-r--r-- 1 dan dan 2555 2010-02-07 18:46 b1.c~
-rwxr-xr-x 1 dan dan 13344 2010-02-07 18:47 out
-rwxr--r-- 1 dan dan 138 2010-02-08 01:34 t1.pl
-rw-r--r-- 1 dan dan 31 2010-02-08 01:30 t1.pl~
which I find much easier to read.
The only useful part of the prompt is the current directory, but
you could achieve that by using an explicit "cd" command. (It's not
really necessary here, since knowing that you're in ~/source42
doesn't help us.)