What is the linux command for each of the following operations Operation What is
ID: 3741795 • Letter: W
Question
What is the linux command for each of the following operations
Operation
What is the Command? 20%
list files & directories.
Ls & mkdir
list all files & directories including the hidden ones.
make a sub-directory called “goodboy” in the home directory.
go to home directory. Assume you are in “my_file” directory.
show the path for where you are in the directory.
read the manual page of command “xyz”
Man xyz
list the contents of the home directory, no matter where you are.
copy “file1” to “file2”.
Cp file1 file2
delete my_file subdirectory.
rename file1 to file2.
Mv file1 file2
display the content of a file called my_file1
redirect the output to list1?
count the number of lines, words, & characters in my_file1?
count only the number of lines in my_file1?
count only the number of words in my_file1?
count only the number of characters in my_file1?
display all lines of list1 & list2 containing the letter “p” & sort the result.
find out about “sort”.
display the names of all files in directory “ubuntu” & their permissions.
remove directory “trash”
Rmdir trash
Operation
What is the Command? 20%
list files & directories.
Ls & mkdir
list all files & directories including the hidden ones.
make a sub-directory called “goodboy” in the home directory.
go to home directory. Assume you are in “my_file” directory.
show the path for where you are in the directory.
read the manual page of command “xyz”
Man xyz
list the contents of the home directory, no matter where you are.
copy “file1” to “file2”.
Cp file1 file2
delete my_file subdirectory.
rename file1 to file2.
Mv file1 file2
display the content of a file called my_file1
redirect the output to list1?
count the number of lines, words, & characters in my_file1?
count only the number of lines in my_file1?
count only the number of words in my_file1?
count only the number of characters in my_file1?
display all lines of list1 & list2 containing the letter “p” & sort the result.
find out about “sort”.
display the names of all files in directory “ubuntu” & their permissions.
remove directory “trash”
Rmdir trash
Explanation / Answer
1) To list files & directories:
2) To list all files & directories including the hidden ones:
3) To make a sub-directory called “goodboy” in the home directory:
4) To go to home directory. Assume you are in “my_file” directory:
5) To show the path for where you are in the directory:
6) To read the manual page of command “xyz”:
7) To list the contents of the home directory, no matter where you are:
8) To copy “file1” to “file2”: ( it copies contents of file1 to file2 i.e., both files can exist in directory)
9) To delete my_file subdirectory:
10) To rename file1 to file2: (i.e., contents of oldfilename will be copied to newfilename and old file can be deleted)
11) To display the content of a file called my_file1:
12) To redirect the output to list1?: (i.e., it just redirect the output to a file)
13) To count the number of lines, words, & characters in my_file1?:
14) To count only the number of lines in my_file1?:
15) To count only the number of words in my_file1?:
16) To count only the number of characters in my_file1?:
17) To display all lines of list1 & list2 containing the letter “p” & sort the result: (i.e., using pipe command sybol | )
18) To find out about “sort”:
19) To display the names of all files in directory “ubuntu” & their permissions:
20) To remove directory “trash”:
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.