A filename con comprise multiple embedded dots (e.g., a.b.c.d.e).
True
False
A device file is not really a stream of characters and doesn't contain anything at all.
True
False
Relative pathnames begin with the root directory.
True
False
Running the ls -a command uniquely identifies directories and binary executables.
True
False
What is the result of running mkdir -p share/man/cat1 from the command line?
a. |
It creates the directory share. |
|
b. |
It creates the directory share/man. |
|
c. |
It creates the directory share/man/cat1. |
|
d. |
All of the above. |
|
e. |
None of the abov |
In a relative pathname . (a single dot) represents the parent directory.
True
False
Running wc -l will display a count of all the lines in a file.
True
False
All files in UNIX are organized in a linear structure.
True
False
If the file /bin/echo exists on your system, are the commands echo and /bin/echo equivalent?
Yes
No
Relative pathnames always begin with a / character.
True
False
Absolute pathnames begin with the root directory.
True
False
he pathname /home/romeo/login.sql is an example of a(n) _________ pathname.
absolute |
||
directory |
||
relative |
||
logical |
Each entry in a directory contains only the inode number for the file or directory.
True
False
Running the ls -x command produces multicolumnar output.
True
False
n a relative pathname .. (two dots) represents the current directory.
True
False
A binary file contains only printable characters.
True
False
Running the wc command with no options will, by default, display a count of all the lines, words, and characters for a file.
True
False
Select all the types of files you would find in a UNIX system.
Device |
||
EBCDIC |
||
Ordinary |
||
Directory |
Running the ls -R command will list all files and subdirectories in a directory tree.
True
False
The root directory is also known as the person's home directory.
True
False
The more and less commands are pagers commonly used by the man command.
True
False
Running the ls -F command displays hidden files in the directory.
True
False
in a UNIX system the file names chap01, Chap01, and CHAP01 all refer to the same file.
True
False
It is generally a good idea to use the more command rather than the cat command to display large files.
True
False
The name of a file can be only be found in its directory.
True
False
in a UNIX system, directories are files.
True
False
Running wc -w will display a count of all the words in a file.
True
False
The wc command can be used to count paragraphs, lines, words, and characters.
True
False
Displaying binary files with a cat command produces readable output.
True
False
A filename con comprise multiple embedded dots (e.g., a.b.c.d.e).
True
False
A device file is not really a stream of characters and doesn't contain anything at all.
True
False
Relative pathnames begin with the root directory.
True
False
Running the ls -a command uniquely identifies directories and binary executables.
True
False
What is the result of running mkdir -p share/man/cat1 from the command line?
a.
It creates the directory share.
b.
It creates the directory share/man.
c.
It creates the directory share/man/cat1.
d.
All of the above.
e.
None of the abov
In a relative pathname . (a single dot) represents the parent directory.
True
False
Running wc -l will display a count of all the lines in a file.
True
False
All files in UNIX are organized in a linear structure.
True
False
If the file /bin/echo exists on your system, are the commands echo and /bin/echo equivalent?
Yes
No
Relative pathnames always begin with a / character.
True
False
Absolute pathnames begin with the root directory.
True
False
he pathname /home/romeo/login.sql is an example of a(n) _________ pathname.
absolute
directory
relative
logical
Each entry in a directory contains only the inode number for the file or directory.
True
False
Running the ls -x command produces multicolumnar output.
True
False
n a relative pathname .. (two dots) represents the current directory.
True
False
A binary file contains only printable characters.
True
False
Running the wc command with no options will, by default, display a count of all the lines, words, and characters for a file.
True
False
Select all the types of files you would find in a UNIX system.
Device
EBCDIC
Ordinary
Directory
Running the ls -R command will list all files and subdirectories in a directory tree.
True
False
The root directory is also known as the person's home directory.
True
False
The more and less commands are pagers commonly used by the man command.
True
False
Running the ls -F command displays hidden files in the directory.
True
False
in a UNIX system the file names chap01, Chap01, and CHAP01 all refer to the same file.
True
False
It is generally a good idea to use the more command rather than the cat command to display large files.
True
False
The name of a file can be only be found in its directory.
True
False
in a UNIX system, directories are files.
True
False
Running wc -w will display a count of all the words in a file.
True
False
The wc command can be used to count paragraphs, lines, words, and characters.
True
False
Displaying binary files with a cat command produces readable output.
True
False
True
True
True
False
it creates the dirctory share/man/cat1
True
True
False
They are organsed in multi leveled heirarchy.
yes
False
True
directory
False
False
False
False
True
Device,ordinary,directory,
False
True
True
False
True
True
True
True
True
True
True
A filename con comprise multiple embedded dots (e.g., a.b.c.d.e). True False A device file is not...
QUESTION 1 What will be the output of following Unix command: find / -name ‘*’ A. List all files and directories recursively starting from / B. List a file names * in / C. List all files in / directory D. List all files and directories in / directory QUESTION 2 Which command is used to extract a column/field from a text file / input. A. paste B. get C. cut D. tar QUESTION 3 Which command creates an empty...
Select your answer from here. absolute pathname to the file called xyz changes the directory to the parent of the current directory. lists current directory files including the invisible files sends xyz file to the line printer deletes the directory called xyz displays the content of the file called xyz displays the current directory pathname cancels the printing job on the 1p 1 printer confirms the deletion of the xyz file before deleting it lists the current directory in long...
Login to Suse Linux as root. Complete the task working as the root user. 1. What is your current directory. What did you enter at the command prompt to determine your current working directory? 2. Change directories if needed to find your foods (or food) file. Use vi to make the file contain 10 food items. Save your file and quit. Use the cat command, and option, and the argument food to display the food file with numbered lines. Use...
LUNIX (Please Label) Exit vi (:q) and from the command line, type viscript4.sh. For this script, we will iterate through all files in the current directory print out their name using the for loop. Example (do not type yet): foriin*;do …;done where the…does some operation on$I, which stands for the current file. To do this, enter the following in your script4.sh file: #!/bin/bash for i in *; do echo $i done Once the above works, change the for loop to...
Lab 0: Essential UNIX OperationsObjectivesAt the end of this of lab, you should be able to:securely log in to a remote computer running a UNIX-like operating systemread the manual page for any commanduse the UNIX file systemedit a text fileNotes:· In order to get familiar with UNIX, do all your work on UNIX.· A command line interface may be harder to learn, but can be more powerful for scripting and automating tasks.· ...
do numbers 4-8 4. Given any directory, use the Is command to display: • all files and sub-directories starting with the letter "D" (note do not list anything in any sub-directory) • its immediate sub-directories (sub-directories only, and no other ordinary files) its immediate hidden sub-directories only - take a screenshot (#3-3) that clearly shows the command and the result. 5. Assume that the following files are in the working directory: $ ls intro notesb ref2 section 1 section3 section4b...
e) In the context of Unix file system , what does "path" means? f) Write down the absolute path for the main.cpp in the timeproj directory g)Write down the relative path from inside timeproj directory to the prgm1.cpp file h)Write down the Unix commands and key strokes needed to create a new sourcefile named time.cpp and then save it to disk using the pico editor. i) In Unix each file has three access modes, namely r,w, and x. 1) Write...
QUESTION 4 Which UNIX shell operator will perform which function? - A. B. C. D. Append output to a file - A. B. C. D. !! - A. B. C. D. < - A. B. C. D....
see below: You will be creating a personal quiz that will provide a grade depending on the responses given. The quiz should contain at least three questions of the true/false or multiple-choice nature. You should select only one type of question to use. These questions should originate from Comprehension Check in your textbook (noting the chapter and page number) These questions and the correct answer identifier should be stored in a text file. A second table should contain the possible...
Unix/Linux The purpose of this lab is to practice the commands to manage and organize files and directories: How would one go about this? Thanks. Task 1: Preliminaries: 1) If you have not already done so, create a directory called bin under your HOME directory. 2) If you have not already made a copy (using ftp) of the file called famous.dat from the Assignment#1, do that now. 3) Make bin the active/working directory. Task 2: Perform all of the following...