1/72
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Print Working Directory
pwd
List Contents
ls
Make Directory
mkdir
Change Directory
cd
Copy
cp
Move
mv
Remove
rm
Manual
man
Log File
script
Should you expect an output for pwd?
yes
Should you expect an output for ls?
yes
Should you expect an output for mkdir?
no
Should you expect an output for cd?
no
Should you expect an output for cp?
no
Should you expect an output for mv?
no
Should you expect an output for rm?
Yes if -f isn't used
Should you expect an output for man?
yes
Should you expect an output for script?
yes
What does the append option do?
It allows you to append a log file
What does the flushed option do?
It writes to the log file in real time
What does the forced (-f) option do?
It deletes without asking permission
What does the recursive (-r) option do?
It deletes folders
What is the difference between the copy and move commands?
Copy moves a file from one location to another without deleting the original while move deletes the original after the file is moved
What does the all (-a) command do?
It shows all files including hidden ones
What does the long (-l) command do?
It shows files in long format with options
What is the proper syntax for the ls command?
ls -options location/directory
What is the proper syntax for the mkdir command?
mkdir location/directory
What is the proper syntax for the cp command?
cp location/file.ext newlocation
What is the proper syntax for the mv command?
mv location/file.ext newlocation/newname.ext
What is the proper syntax for the rm command?
rm -options location/file.ext
What is the proper syntax for the script command?
script -options logfilename.txt
What is the absolute pathname of the E 115 Course Locker?
/afs/eos.ncsu.edu/courses/e/e115
What is the absolute pathname of my home directory
/afs/unity.ncsu.edu/users/d/dcmcfar2
What 2 commands are associated with text files?
More and less
What does the quota command show?
The amount of storage you have used
What does the add command do?
Installs a command through the command window
What does the attach command do?
Creates a shortcut to a directory
What subcommands of the file system command control who has access to files?
la and sa
What subcommands of the file system command control who has access to backups?
mkm and rmm
List access
la
Set access
sa
Make mount
mkm
Remove mount
rmm
What command allows you to create an archive?
zip
What does rlidwka stand for? What other access list options are there?
read, look, insert, delete, write, lock, admin. The other options are all and none
What is the proper syntax for the more/less comamnd?
more/less location/file.txt
What is the proper syntax for the attach command?
attach absolute_pathname
What is the proper syntax for the fs command?
fs subcommand path unityid accesslist
What is the syntax of the command to make a backup?
fs mkm BACKUP users.unityid.backup
How would you remove a backup?
fs rmm BACKUP
What command extracts files from an archive?
unzip
What is the proper syntax for the unzip command?
unzip location/file.zip
What is the proper syntax for the zip command?
zip zipfile.zip file1.ext file2.ext
On UNIX-based systems, the 'rm' command performs which function?
Deletes a file
Which flag is necessary to allow the "rm" command to delete directories
-rf
Which UNIX command is used to display a list of all files in the current working directory
ls-a
Which command would change the permissions on a file named 'gnomy.txt' to ensure that it was visible to strangers on the Internet?
chmod o+r gnomy.txt
Which command changes the current working directory to the parent directory?
cd..
Which command changes the current working directory to the root directory?
cd /
Which command changes the current working directory to the user's account home directory?
cd ~
Which command changes the current working directory to the current working directory?!!
cd.
Which command changes the current working directory to a sub-directory?
cd root
Which command changes the current working directory to the sub-directory named 'insolvent'?
cd insolvent
The command 'ls -l' shows the files and folders in the current working directory along with their metadata. One of the results shows the following metadata: 'drwxr-xr-x'. Is this a file or a folder?
Folder
The command 'ls -l' shows the files and folders in the current working directory along with their metadata. One of the results shows the following metadata: '-r-x------'. Is this a file or a folder?
File
With the following permissions, who has write permissions for this file or folder? ''-rw---xr-x'
The user who owns the file
Would the user who owns a file with the permissions '--wx-wx----' be able to read the contents of that file?
No
Which Unix command moves a file from one location to another
mv
In UNIX-based systems, the cp command…
Copies a file or folder from a source to a destination
Unix commands also generally work on Linux operating systems.
True
Linux was created to be a free (as in "freedom") clone of UNIX.
True
Which of the following operating systems are extensions of UNIX or Linux?
Apple OS X
Everything that can be done from the UNIX or Linux command line can also be done using an operating system's Graphical User Interface.
False