CH.18/7 Flashcards
When you log on as administrator, what is the home directory?Pg.883
/root
What is the home directory for other users? Pg.883
/home
Where is user account information stored?Pg.883
/etc/passwd file
What is the current directory concept?Pg.883
The directory on which all file and directory commands operate.
Name some directory commands and usage?Pg.883
pwd-to see current dir cd-change current dir to home cd~-from current dir to home cd(.)-indicates current dir cd(..)-indicates parent dir
What command will you use to get a directory listing?Pg.884
ls
ls -F ( tells dir from files, dir indicated by /)
ls -l list file details; name, owner, group, D/T last Mod, size, links(shortcuts), file permissions
How are permissions represented in Linux?Pg.884
rwx=read,write,execute 3x(3 grps of 3 letters) ,9 spaces complete
What does a dash/hyphen indicate in the permission set?Pg.886
permission not granted for that specific operation
How are the file permissins delegated?Pg.886
First rwx=owner, second rwx=group, and third rwx=all other users
How do you change permissions for a file?Pg.887
chmod with a who code:u,g,o,a; action code:+,- =,s and perm code:rwx
If I wanted to change ownership of shots dir from root to user ID nds, grp ID nrs. What is the command?Pg.886
chown nds.nrs shots
cp -ar does what? Pg.886
copies everything from source to destination
T/F To delete a dir no longer needed you simply type rmdir. Pg.887
False. It must be empty first then delete it
What is the command line to delete a directory tree? Pg.887
rmdir -p
What command is used to get configuration in Linux? Pg.887
ifconfig