[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Permissions and Ownership command



I just had to reply to this.  I bought the cobalt raq because I was
assured by the sales guy selling it that it would be no problem to
administer it and very little intervention would be required.  I have 11
months of the contract to go and counting ...

I don't know the fundamental stuff.  I read some of your postings
wide-eyed with horror at some of the commands one is expected to know.
I've held manual to my nose in one had and mouse in the other, trying to
configure somethings.  Some things happen the way the manual says it
will, others don't.  I've trawled web sites, bombarded the help desk,
still trying to figure out how to set up the email.

So, I'm likely to ask some pretty dumb questions to start with.  And I
hope to get smarter as time goes by, and be as helpful towards others.
Anyone that thinks my questions too dumb to see the light of day, just
hit the delete button.  I'd be happier not getting a response to a
question, rather than one laden with insults.  But I'd rather be foolish
for five minutes than be foolish for a life-time.  :)  

Jimi

-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx] On Behalf Of Colin J. Raven
Sent: 18 July 2002 20:38
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: RE: [cobalt-users] Permissions and Ownership command


|>What unix command do you use to find the current ownership and/or 
|>permissions a file or folder has?

Sheesh....you bought a server appliance and now want to know basic (and
I mean truly fundamental) stuff like this??? Well damn, I guess this is
"newbie-teach-time" <growl> Didn't you think to perhaps spend just a
teensy widdle bit of time inside a "Running Linux" or "The fundamentals
of Unix" books (among many many others that are a racy and informative
read)

Look, this list assumes a BASIC level of learning....we don't mind
helping to polish the basics a subscriber may have learned already, but
really this is a bit much. <sigh> Lest someone think I'm just a grumpy
old bastard (I am sometimes, but quite lovable and cuddly otherwise)
here's what to do:

FIRST
"man" [whatever] is your friend. "man" (minus the parens) plus the
command you are curious about at the command line is gonna save your
ass, and also spare wear and tear on your asbestos gloves. Thus, "man
ls" will yield what I've cut and pasted into the body of this message
below.

SECOND
The short version of what you seek is this:
[21:25:09] schoenmaker@maytag~>ls -laF
This gives you file AND directory info (directories will have a "/"
appended after the name) Watch the case here, the "F" IS uppercase as
can be seen from the man page abstract below. From the man pages:

THIRD
Gawd, I mean this in the nicest and kindest way possible, but firmly
also........"RTFM" which means:
			"READ THE FUCKING MANUAL"
And here (concerning the mighty and powerful ls command) is an abstract
of "The Manual".

LS(1)                          FSF                          LS(1)

NAME
       ls - list directory contents

SYNOPSIS
       ls [OPTION]... [FILE]...

DESCRIPTION
       List  information  about  the FILEs (the current directory by
default).  Sort entries alphabetically if none of
       -cftuSUX nor --sort.

       -a, --all
              do not hide entries starting with .

       -A, --almost-all
              do not list implied . and ..

       -b, --escape
              print octal escapes for nongraphic characters

       --block-size=SIZE
              use SIZE-byte blocks

       -B, --ignore-backups
              do not list implied entries ending with ~

       -c     sort by change time; with -l: show ctime

       -C     list entries by columns

       --color[=WHEN]
              control whether color is used to distinguish file types.
WHEN may be `never', `always', or `auto'

       -d, --directory
              list directory entries instead of contents

       -D, --dired
              generate output designed for Emacs' dired mode

       -f     do not sort, enable -aU, disable -lst

       -F, --classify
              append indicator (one of */=@|) to entries

       --format=WORD
              across -x, commas -m, horizontal -x, long -l,
single-column 	        -1, verbose -l, vertical -C
 --full-time
              list both full date and full time

       -g     (ignored)

       -G, --no-group
              inhibit display of group information

       -h, --human-readable
              print sizes in human readable format (e.g., 1K 234M 2G)

       -H, --si
              likewise, but use powers of 1000 not 1024

       --indicator-style=WORD
              append indicator with style WORD to entry names: none
(default), classify (-F), file-type (-p)

       -i, --inode
              print index number of each file

       -I, --ignore=PATTERN
              do not list implied entries matching shell PATTERN

       -k, --kilobytes
              like --block-size=1024

       -l     use a long listing format

       -L, --dereference
              list entries pointed to by symbolic links

       -m     fill width with a comma separated list of entries

       -n, --numeric-uid-gid
              list numeric UIDs and GIDs instead of names

       -N, --literal
              print raw entry names (don't treat e.g. control characters
specially)

       -o     use long listing format without group info

       -p, --file-type
              append indicator (one of /=@|) to entries

       -q, --hide-control-chars
              print ? instead of non graphic characters

       --show-control-chars
              show non graphic characters as-is (default)

       -Q, --quote-name
              enclose entry names in double quotes

       --quoting-style=WORD
              use quoting style WORD for entry names: literal, shell,
shell-always, c, escape

       -r, --reverse
              reverse order while sorting

       -R, --recursive
              list subdirectories recursively

       -s, --size
              print size of each file, in blocks

       -S     sort by file size

       --sort=WORD
              extension -X, none -U, size -S, time -t, version -v status
-c, time -t, atime -u, access -u, use -u

       --time=WORD
              show time as WORD instead of modification time: atime,
access, use, ctime or status; use specified  time
              as sort key if --sort=time

       -t     sort by modification time

       -T, --tabsize=COLS
              assume tab stops at each COLS instead of 8

       -u     sort by last access time; with -l: show atime

       -U     do not sort; list entries in directory order

       -v     sort by version

       -w, --width=COLS
              assume screen width instead of current value

       -x     list entries by lines instead of by columns

       -X     sort alphabetically by entry extension

       -1     list one file per line

       --help display this help and exit

PLEASE....buy some Linux books, THEN read 'em......you'll be oh so glad
you did.

Regards,
-Colin
--
Colin J. Raven
http://www.haggis.nl/~duiker
Home of the Cobalt "Slam Dunk of the Week Award"

_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users


__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.comm