Perform basic file management Flashcards
How are hidden files named?
Begin with a dot
What shorthand refers to the present directory?
.
What shorthand refers to the parent directory?
..
What wildcard represents a single character in a filename?
?
What wildcard matches any sequence of characters om a filename?
*
What notifies matching any character in a set for wildcards in a filename?
[a-z]
What command will list hidden files and directories?
ls -a
What command will show the file types in a listing?
ls -F –file-type
What command will show files recursively?
ls -R –recursive
What command will copy a file?
cp
What command will move a file?
mv
What command will delete a file?
rm
What command is used to create files and or set the modification / access times?
touch
What utility creates a zipped archive and is based on tape archives?
tar
What utility creates an archive based on Copy-out and Copy-in mode?
cpio
What command will copy partitions?
dd
What command will create a directory?
mkdir
What command will delete a directory?
rmdir
What command changes the owner of a file?
chown
What command changes the group for a file?
chgrp
What is meant by file type code - ?
file
What is meant by file type code d ?
directory
What is meant by file type code p ?
named pipe - two programs use the file to communicate
What is meant by file type code s ?
socket - similar to pipe with networking
What is meant by file type code b ?
block device - hard disk, cd, ram etc
What is meant by file type code c ?
character device - hardware device that has data transfered to and from one byte at a time
What represents the file octal code 7?
rwx
What represents the file octal code 6?
rw-
What represents the file octal code 5
r-x
What represents the file octal code 4
r–
What represents the file octal code 0