Question
You are logged in as user1. Write the command to create a directory named fruit in your home directory using the absolute path. QUESTION 2
You are logged in as user1. Write the command to create a directory named fruit in your home directory using the absolute path.
QUESTION 2 You are logged in as user1 and your current working directory is /home. Write the command to create a directory named apples in your fruit directory using a relative path.
QUESTION 3 You are logged in as user1 and your current working directory is fruit, in which you created a directory named grapes. However, you have not used the grapes directory, so want to get rid of it. Write the command you would type to remove the empty directory using a relative path.
QUESTION 4 You are logged in as user1 and your current working directory is user1. Write the command to create an empty file named macintosh in your apples directory using the absolute path. Do not use the vi editor (or any editor).
QUESTION 5 You are logged in as User1 and your current working directory is user1. Write the command to add content to the macintosh file using a relative path. Do not use the vi editor (or any editor). Do not include the content in your answer.
QUESTION 6 In order to add content to the macintosh file, you had to use a special character. The act of using the special character is called _______________.
QUESTION 7 You are logged in as user1 and your current working directory is user1. Write the command using a relative path to view the contents of the macintosh file on your display screen, one page at a time.
QUESTION 8 You are logged in as User1 and your current working directory is user1. Assume the macintosh file is a log file and a lot of content has been added to it. You only want to see the latest 5 lines of content. Write the command to show you just those lines using a relative path.
QUESTION 9 You are logged in as User1 and your current working directory is user1. You have created another directory called /home/user1/fruit/oranges. Write the command to create an empty file named mandarin in your oranges directory using a relative path.
QUESTION 10 You are logged in as User1 and your current working directory is user1. Write the command to change into the oranges directory using a relative path.
QUESTION 11 You are in the oranges directory. Write the command to copy the mandarin file to the apples directory using relative paths.
QUESTION 12 Which command do you use to rename files and directories? A. new B. mv C. rn D. rename
QUESTION 13 You are in the oranges directory. Write the command to list the contents of the apples directory, in long format. Use a relative path.
QUESTION 14 What does the first character (the farthest character on the left) in a long listing indicate? A. Type of file. B. Inode. C. Read permission bit for user. D. Read permission bit for others.
QUESTION 15 What are the efffective permissions on a newly created file? Use exactly 9 characters in your answer. Do not add spacing.
QUESTION 16 If you had to write the command to list the macintosh file in the apples directory using an absolute path, that would be a lot of typing. Assume you have already typed ls home/user1/fruit/apples/ What key can you press to complete the line without having to type the entire word macintosh? This key is helpful when filenames are a long mix of alphanumeric characters, like vmlinuz-2.6.33.3-85.fc13.i686.PAE in the /boot directory.
QUESTION 17 After typing the ls -a command, you notice there is a file whose filename begins with a dot (.) What does this mean? A. It is a binary file. B. It is a system file. C. It is a hidden file. D. It is a compressed file.
QUESTION 18 Which symbol represents the absolute path to your home directory? A. < B. ~ C. @ D. >
QUESTION 19 You are logged in as the root user. You have changed directory into the oranges directory. What command would you type to make root the user owner on the mandarin file?
QUESTION 20 What command would you type to make root the group owner on the mandarin file?
QUESTION 21 You are now logged in as User1 and your current working directory is user1. What command would you type to create a symbolic link in your home directory to the mandarin file? Use relative paths.
QUESTION 22 You are now logged in as User1 and your current working directory is oranges. How can you change from the oranges directory back into your home directory using a relative path?
QUESTION 23 You are logged in as User1 in your home directory. Write the command to list the permissions on the fruit directory itself, not the contents of the fruit directory. Use a relative path.
QUESTION 24 What are the efffective permissions on a newly created directory? Use Octal mode for your answer.
QUESTION 25 The effective permissions seen on newly created files and directories are not the default permissions at creation time, which are too permissive. There is a special variable on the system called the _______ that takes away some of the default permissions on new files and directories immediately after they are created. This results in the effective permissions, which are more secure.
QUESTION 26 You are logged in as User1 in your home directory. Write the command to make the apples directory read, write and executable for user1, but groups and everyone else can just read. Use a relative path. The absolute path is /home/user1/fruit/apples.
QUESTION 27 You are logged in as User1 in your home directory. You have typed vi fruit/oranges/mandarin. Now you want to copy the contents of the macintosh file into the mandarin file. What do you type?
QUESTION 28 You are happy with the contents of the mandarin file. You want to get out of vi, saving the file. You press the escape key. Now what keys do you type before pressing the enter key?
QUESTION 29 The vi editor can function in which two of the following modes? A. text B. input C. insert D. interactive E. command F. escape
QUESTION 30 What series of keys do you use to copy and paste while in the vi editor? A. yy pp B. dd pp C. yy p D. dd p
QUESTION 31 What series of keys do you use to cut and paste while in the vi editor? A. yy p B. yy pp C. dd p D. dd pp
QUESTION 32 You are logged in as User1 and your current working directory is /home/user1/fruit. Write the command to make the macintosh file in the apples directory read, write, and executable by user1, read and writable for the user1 group, and readable and executable for everyone else. Use a relative path.
QUESTION 33 You are logged in as User1 and your current working directory is /home/user1/fruit. Assume you have four files in your fruit directory: file, file1, file2, and file3. Write the command to list just file1 and file3 using the word "file" only once.
QUESTION 34 You are logged in as User1 and your current working directory is /home/user1/fruit. Assume you have four files in your fruit directory: file, file1, file2, and file3. Write the command to list just file and file1 using the word "file" only once.
QUESTION 35 Wildcard metacharacters work similarly to regular expressions in that they are used to match characters, yet there are many differences. Which one of the following statements is not true? A. Wildcard metacharacters are interpreted by the shell, whereas regular expressions are interpreted by a text tool program. B. Wildcard metacharacters match characters in filenames, whereas regular expressions match characters within text files. C. Wildcard metacharacters typically have different definitions than regular expression metacharacters. D. More wildcard metacharacters are available than regular expression metacharacters.
QUESTION 36 You are logged in as User1 in your home directory. You added a paragraph of content to the fruit/oranges/mandarin file, including the line: Mandarin oranges are delicious. You also used the word "delicious" elsewhere in the paragraph. What command can you type to show all the instances of the word "delicious" on your display screen? Use a relative path.
QUESTION 37 You are logged in as User1 in your home directory. What command would you use to delete the manadarin file? Use a relative path.
QUESTION 38 You are logged in as User1 in your home directory. What command would you use to delete the entire apples directory? Use a relative path.
QUESTION 39 When you type a command at the command prompt, you can follow it with ________________ and then _______________. A. Destinations B. Options C. Arguments D. Parameters
QUESTION 40 Which of the following are commands associated with help on a Linux system? A. man B. which C. apropos D. whatis E. info
QUESTION 41 What term is used to describe a running program on Linux?
QUESTION 42 The _____ metacharacter indicates background job execution. A. < B. @ C. ^ D. &
QUESTION 43 What was created to define a standard directory structure and common file location for Linux? A. X.500 B. GNU C. HPFS D. FHS
QUESTION 44 What is represented by the second number in the Linux kernel version 2.3.4? A. A major revision to the kernel. B. A minor revision to the kernel. C. Stable release. D. Developmental release.
QUESTION 45 Under which licensing model is Linux made available?
QUESTION 46 The concept of _____ enables software developers to read other developer's code, modify that code to make the software better, and redistribute the code to other developers who might improve it further. A. freeware B. OSS C. GNU D. shareware
QUESTION 47 The ____________ is the core component of the Linux Operating System.
QUESTION 48 Another name for virtual memory is ______ memory.
QUESTION 49 Most files on a Linux system that contain configuration information are ____ files. A. text B. binary C. compressed D. linked
QUESTION 50 When you change data in a file that is hard-linked to three other files, ________________________________ A. only the data in the file you modified is affected. B. the data in the file you modified is affected and any hard-linked files in the same directory are affected. C. the data in the file you modified is affected and the data in all three of the hard-linked files is affected. D. the data in the file you modified is affected and the data in all three of the hard-linked files is affected because those files have different inodes.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started