Hbwsl - Linux Basic Commands

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Gauravjoshi
G
Gauravjoshi
Community Contributor
Quizzes Created: 1 | Total Attempts: 644
| Attempts: 644 | Questions: 65
Please wait...
Question 1 / 65
0 %
0/100
Score 0/100
1. What command is used to copy a file?

Explanation

The command "cp" is used to copy a file. This command allows the user to make a duplicate copy of a file or directory. By using the "cp" command followed by the source file and destination file, the file is copied from the source location to the specified destination.

Submit
Please wait...
About This Quiz
Hbwsl - Linux Basic Commands - Quiz

The 'HBWSL - Linux Basic Commands' quiz assesses knowledge of essential Linux command line tools. It covers commands for memory utilization, clearing terminal display, file permissions, ownership changes,... see morefile viewing, and locating system log files. Ideal for learners enhancing their Linux skills. see less

2. What command is used to change directories?

Explanation

The command "cd" is used to change directories in a command line interface. It allows the user to navigate through different directories or folders on the computer's file system. By typing "cd" followed by the desired directory name, the user can switch to that directory and access its contents. This command is commonly used in operating systems like Unix, Linux, and Windows Command Prompt.

Submit
3. What command is used to change the permissions of a file?

Explanation

The command "chmod" is used to change the permissions of a file. This command allows the user to modify the permissions for the owner, group, and others on the file. By using different options and parameters with the "chmod" command, the user can grant or revoke read, write, and execute permissions for the file. This command is commonly used in Unix-like operating systems to manage file permissions and ensure the security and accessibility of files.

Submit
4. Ls -al

Explanation

The command "ls -al" is used to display a formatted listing of files and directories in the current directory. The "-a" option includes hidden files in the listing, while the "-l" option provides detailed information about each file or directory, such as permissions, owner, size, and modification date. Therefore, the correct answer is "formatted listing with hidden files".

Submit
5. What is the command to delete a file?

Explanation

The command "rm" is used to delete a file in a Unix/Linux system. It stands for "remove" and is a basic command for deleting files. The command "rm -f" is a more forceful version of the "rm" command, where the "-f" flag is used to forcefully remove the file without prompting for confirmation. Both commands can be used to delete files, but "rm -f" is more commonly used when you want to delete files without any confirmation prompts.

Submit
6. What command is used to change ownership of a file?

Explanation

The command "chown" is used to change the ownership of a file. This command allows the user to transfer the ownership of a file to another user or group. By using "chown", the user can modify the permissions and access rights of a file, granting ownership to a specific user or group. This command is commonly used in Unix-based operating systems to manage file ownership and control access to files.

Submit
7. How would you show a list of files and directories that are inside the current directory?

Explanation

The correct answer for this question is "ls". In Unix-based systems, the "ls" command is used to list the files and directories that are inside the current directory. It provides a simple and concise way to view the contents of the current directory without displaying any additional information. This command is widely used by users to navigate and explore the file system.

Submit
8. Head file

Explanation

The correct answer is "show top 10 lines" because the command "head" is used to display the beginning or top portion of a file. By typing "head file", it will show the first 10 lines of the file "file".

Submit
9. Mv file1 file2

Explanation

The given command "mv file1 file2" is used to rename or move file1 to file2. It does not delete the files or copy file1 to file2.

Submit
10. Ps

Explanation

The correct answer is "display current active processes" because out of the given options, it is the only one that pertains to showing the currently running processes on a system. The other options, such as displaying the date and time or showing a monthly calendar, are unrelated to displaying active processes.

Submit
11. Cp -r dir1 dir2

Explanation

The given command "cp -r dir1 dir2" is used to copy the directory "dir1" and all its contents to the directory "dir2". If "dir2" does not exist, it will be created. This command does not involve copying or deleting individual files, it specifically deals with copying directories.

Submit
12. __________ command used to create an empty file.

Explanation

The touch command is used to create an empty file.

Submit
13. Pwd

Explanation

The command "pwd" is used to show the current directory in a command line interface. It displays the full path of the current working directory, allowing the user to see where they are located within the file system. This can be helpful for navigating and organizing files and directories.

Submit
14. What command clears the contents of your terminal display?

Explanation

The correct answer is "clear". This command is used to clear the contents of the terminal display, removing all previous commands and output from the screen. The "reset" command, on the other hand, resets the terminal to its default settings, but does not clear the display.

Submit
15. Tail file

Explanation

The correct answer is "show bottom 10 lines" because the command "tail file" is used to display the last few lines of a file. By default, it displays the last 10 lines of the file. Therefore, the command "tail file" is equivalent to "show bottom 10 lines".

Submit
16. What command creates an empty directory?

Explanation

The correct answer is "mkdir". The mkdir command is used to create a new directory or folder in a file system. By using this command, an empty directory can be created.

Submit
17. You want to view a listing of previously entered commands. What command would
you use?

Explanation

history command lists all commands in history. All history commands
stored in ~/.bash_history file.

Submit
18. What command allows you to view a file one page at a time?

Explanation

The correct answer is "less". The "less" command allows you to view a file one page at a time. It is a pager program that displays text files or the output of other commands on the terminal. It allows you to scroll through the file using the arrow keys or specific commands, making it easier to navigate through large files without overwhelming the screen with too much information at once. The "more" command is similar but has fewer features compared to "less".

Submit
19. What is the command to switch to the root user account?

Explanation

The correct answer is "su". This command is used to switch to the root user account in Unix-like operating systems. "sudo su root" is also a valid command to switch to the root user account using the sudo command. "sudo su" alone can also be used to switch to the root user account, but it is not recommended as it can potentially cause security risks.

Submit
20. The symbol represents home directory is?

Explanation

The symbol "~" is commonly used to represent the home directory in various operating systems, including Unix and Unix-like systems. The home directory is the default directory for a user when they log in, and it typically contains their personal files and settings. Using "~" as a shortcut allows users to quickly navigate to their home directory without having to specify the full path.

Submit
21. What is the command to run a program with elevated permissions?

Explanation

The command "sudo" is used to run a program with elevated permissions. It allows a user to execute a command as a superuser or another user, granting them temporary administrative privileges. This is commonly used in Unix-based operating systems to perform tasks that require higher privileges, such as installing software or making system changes.

Submit
22. Which command to use for complete details of a command on the shell?

Explanation

The correct answer is "man". The "man" command is used to display the manual page for a given command on the shell. It provides detailed information about the command, including its syntax, options, and examples. By using the "man" command, users can access comprehensive documentation and get a complete understanding of how a specific command works.

Submit
23. How do you see hidden files in your home directory?

Explanation

The correct answer is "ls -la". This command lists all files and directories, including hidden ones, in a detailed format. The "-l" option displays the files in a long format, showing permissions, owner, size, and other details. The "-a" option shows all files, including hidden ones that start with a dot. Therefore, using "ls -la" allows you to see hidden files in your home directory.

Submit
24. What two commands display the status of processes on a Linux system?

Explanation

b. Both ps and top yield process status. None of the other listed commands are related to processes.

Submit
25. What command is used to search files for a pattern?

Explanation

The command "grep" is used to search files for a pattern. It is a powerful tool that allows users to search for specific text or patterns within files. By using various options and regular expressions, grep can efficiently search through multiple files and directories to find the desired pattern. It is commonly used in command-line environments for tasks such as log analysis, text processing, and data extraction.

Submit
26. Which command is used to view the complete file without modifying it ?

Explanation

The cat command is used to view the complete file without modifying it. It displays the contents of a file on the terminal.

Submit
27. What is the command to search all files in your current directory for the word plasmodium?

Explanation

The correct answer is "grep plasmodium *". The grep command is used to search for patterns in files. In this case, it is searching for the word "plasmodium" in all files in the current directory. The asterisk (*) is a wildcard that represents all files in the directory. Therefore, this command will search all files in the current directory for the word "plasmodium".

Submit
28. How do you copy an entire directory structure? E.g. from Project to Project.backup

Explanation

To copy an entire directory structure from "Project" to "Project.backup", the correct command is "cp -r Project Project.backup". The "-r" flag is used to recursively copy all files and directories within the "Project" directory to the "Project.backup" directory. This ensures that the entire directory structure is copied over. The other options, "cp Project Project.backup" and "mv Project Project.backup", do not include the "-r" flag and would only copy or move the top-level directory, without its contents. The option "mv -r Project Project.backup" is incorrect as the "-r" flag is not valid for the "mv" command.

Submit
29. Chmod 644 finance.doc 644 equals to

Explanation

The given answer, "rw- r-- r--", represents the permission settings for the file "finance.doc" when using the chmod command with the argument "644". In this case, "rw-" indicates that the owner of the file has read and write permissions, while "r--" indicates that the group and other users only have read permissions. This means that the owner can read and modify the file, while the group and other users can only read the file.

Submit
30. You're now in directory X3 (see below). Moving to directory X1 using command:

X1
 |__
     X2
      |__
          X3 <--- You're here

Explanation

The command "cd ../.." is used to move up two levels in the directory structure. The ".." represents the parent directory, so using it twice moves up two levels. In this case, it will take you from directory X3 to the root directory.

Submit
31. If you want to restrict users from directory content listing, you have to

Explanation

To restrict users from directory content listing, you need to change the directory read permission. By changing the directory read permission, you can prevent users from viewing the contents of the directory, including any files or subdirectories within it. This ensures that the directory's content remains private and inaccessible to unauthorized users.

Submit
32. You want to change the permissions on the file named "fifteen" so that owner has all permissions while all other users don't have any permissions. Which command should you use?

Explanation

The correct answer is "chmod 700 fifteen". This command will change the permissions of the file named "fifteen" so that the owner has all permissions (read, write, and execute), while all other users (group and others) don't have any permissions. The number "700" represents the permission settings, where the first digit (7) represents the owner's permissions, the second digit (0) represents the group's permissions, and the third digit (0) represents the permissions for others.

Submit
33. In order to append the output of ls to a file called bazz, which of the following command lines would you use?

Explanation

The correct answer is "ls >> bazz". This command line appends the output of the "ls" command to a file called "bazz". The ">>" symbol is used for appending output to a file, while ">" symbol is used for overwriting the file with the new output. The other options are incorrect because they either redirect the output to a file without appending it (">" and ">&") or use the incorrect syntax ("&>").

Submit
34. One single command to completely remove directory X1 and all it's contents (see below)

X1
 |__
     X2
      |__
          X3

Explanation

The correct answer is "rm -rf X1" because the "rm" command is used to remove files and directories, and the "-rf" options are used to forcefully remove directories and their contents recursively. This means that the command will remove directory X1 and all its contents, including directory X2 and file X3.

Submit
35. What is the default directory path for system log files?

Explanation

The default directory path for system log files is typically "/var/log" or "/var/log/". This is where various log files are stored on a Unix-like operating system. The logs contain important information about system events, errors, and activities, which can be useful for troubleshooting and monitoring the system's performance. The "/var/log" directory is commonly used by many Linux distributions and Unix-based systems to organize and store log files.

Submit
36. Which command will display the last lines of the text file file1?

Explanation

d. The tail command is used for checking the last lines of a text file. By default, it displays 10 lines.

Submit
37. What command shows you memory utilization?

Explanation

The command "free" shows the memory utilization by displaying the total amount of free and used memory in the system. On the other hand, the command "top" provides a dynamic real-time view of the system, including information about memory usage, CPU usage, and other system statistics. Both commands can be used to monitor memory utilization, but "free" specifically focuses on memory while "top" provides a broader overview of system performance.

Submit
38. The symbol represents current directory is?

Explanation

The symbol "." represents the current directory in a file system. It is commonly used in command line interfaces to refer to the current working directory. This symbol allows users to navigate and access files and directories within the current directory without having to specify the full path.

Submit
39. Which command will list the contents of a directory, listed by file modification time, in reverse order (last modified file shows up at the bottom of a listing)?

Explanation

The command "ls -lart" will list the contents of a directory, listed by file modification time, in reverse order. The "-l" option displays the files in a long format, including the modification time. The "-a" option includes hidden files in the listing. The "-r" option reverses the order of the listing, so that the last modified file shows up at the bottom. Finally, the "-t" option sorts the files by modification time.

Submit
40. What is the command to view data in real time as it is being added to a file?

Explanation

The correct answer is "tail -f". The "tail" command is used to display the last part of a file, and the "-f" option allows the command to continuously display the file as it is being updated in real time. This is useful for monitoring log files or any other files that are constantly being appended with new data.

Submit
41. How would you remove a directory that is not empty?

Explanation

The correct answer is "rm -r". The "rm" command is used to remove files and directories in Unix-like operating systems. The "-r" option stands for "recursive", which means it will remove the specified directory and its contents, including any subdirectories and files within it. By using "rm -r", you can remove a directory that is not empty.

Submit
42. If you want to protect files from content modifications, you have to

Explanation

To protect files from content modifications, you need to change the file write permission. By changing the write permission, you can restrict users from making any changes to the file, ensuring its integrity and preventing unauthorized modifications. This allows you to maintain the original content and prevent any accidental or intentional alterations to the file. Changing the file read permission or the directory permissions would not directly address the issue of content modifications.

Submit
43. Which one of the following statements correctly describes the > and >> symbols in the context of the bash shell?

Explanation

b. The > character opens and writes to a new file, while >> appends to an existing file, unless that file doesn't exist, in which case it is opened first.

Submit
44. You're now in directory X1 (see below). Moving to directory X3 using command:

X1 <--- You're here
 |__
     X2
      |__
          X3

Explanation

The correct answer is "cd X2/X3/" because it correctly navigates to directory X3, which is located inside directory X2. The command "cd X2/X3/" specifies the path to directory X3 relative to the current directory X1.

Submit
45. How would you avoid accidentally removing files?

Explanation

The option "rm -i" is the correct answer because it prompts the user for confirmation before deleting each file. This allows the user to double-check and avoid accidentally removing files. The other options, "rm -chk," "rm -a," and "rm -r," do not provide any confirmation and can lead to unintentional file removal.

Submit
46. How do you find files in your current directory modified more than 48 hours ago?

Explanation

The correct answer is "find . -mtime 2". This command uses the "find" utility to search for files in the current directory (and its subdirectories) that were modified exactly 2 days ago. The dot (.) represents the current directory, and the option "-mtime" specifies the time period for the search. The number 2 indicates that the files modified within the last 48 hours will be returned.

Submit
47. You want to search the file myfile for all occurrences of a string containing at least
five characters, where character number 2 and 5 are "a" and character number 3 is
NOT "b". Which command would you use?

Explanation

String Processing Tools like grep, sed, awk uses wildcard characters.
. à Any Single character from the range
[abc] à Any Single Character from the set
[a-c] à Any Single Character from the Range
[^abc] à Any Single Character except from the set.
[^a-c] àAny Single Character except from the range.
According to QUESTION, in 2nd and 5th position must be a and in 3rd position not b.
B. . means any single character in first postion., a means a must be in second postions,
[^b] means b must not be in third postion, . means any single character in fourth position
and a in fifth position.

Submit
48. The command to restrict user not to delete finance.doc within directory /home/budi

Explanation

The correct answer is "chmod -w /home/budi". This command removes the write permission for the directory "/home/budi", which means that users will not be able to delete the file "finance.doc" within that directory. The other options either only modify the permissions of the file "finance.doc" or change the permissions of the entire directory without specifically targeting the file.

Submit
49. Which one of the following commands is equivalent to the following command for user jdoe whose home directory is /home/jdoe?# chmod 754 ~/file1

Explanation

a. User mode 7 is the same as u=rwx, group mode 5 is the same as g=rx, and other mode 4 is the same as o=r. The ~/ syntax implies the user's home directory.

Submit
50. What do you type in to move to the parent directory

Explanation

The correct answer is "cd ..". This command is used to move to the parent directory in the command line interface. The ".." represents the directory immediately above the current directory. Another option, "cd ../", is also correct as it achieves the same result. However, the second option provided, "cd ../", is incorrect as it includes an extra forward slash ("/") which is not necessary.

Submit
51. If you want to protect files from deletion, you have to

Explanation

To protect files from deletion, you need to change the file's directory write permission. By modifying the directory write permission, you can prevent users from deleting or modifying files within that directory. This means that even if someone has write permission for the file itself, they won't be able to delete it if they don't have write permission for the directory containing it.

Submit
52. The difference between "x" permission in file and directory, is

Explanation

The correct answer is enter permission in directory, execute permission in file. In Unix-like operating systems, the "x" permission for a directory allows a user to enter (i.e., access) the directory, while the "x" permission for a file allows a user to execute (i.e., run) the file as a program. So, the difference between the "x" permission in a file and a directory is that it grants enter permission in a directory and execute permission in a file.

Submit
53. What is the command to take you to your home directory?

Explanation

The command "cd ~" takes you to your home directory by using the tilde symbol (~) as a shortcut for the home directory. The command "cd $HOME" also takes you to your home directory by using the environment variable $HOME, which represents the path to the home directory. Finally, the command "cd" without any arguments also takes you to your home directory, as it is the default behavior of the "cd" command when no directory is specified. Therefore, all the given options are correct ways to navigate to your home directory.

Submit
54. How do you view the last 100 lines of a file?

Explanation

The command "tail -100" is used to view the last 100 lines of a file. The "tail" command displays the last part of a file, and the "-100" option specifies that it should display the last 100 lines. This is useful when you want to quickly check the most recent entries or updates in a file without having to scroll through the entire document.

Submit
55. One single command to create new directory X3 inside new directory X2 inside new directory X1 (see below)

X1
 |__
     X2
      |__
          X3

Explanation

The correct answer is "mkdir X1 X1/X2 X1/X2/X3" because this command creates a new directory called X1, then creates a new directory called X2 inside X1, and finally creates a new directory called X3 inside X2. This sequence of commands follows the given directory structure.

Submit
56. You have just typed the following three commands and got the following output: prompt> echo $PATH /usr/bin:/usr/local/bin:usr/sbin:opt/kde/bin prompt> pwd /home/anna/games prompt> ls game1 game2 game3 You want to run the program game1, but get the response that it is not found. What did you forget to do?

Explanation

/home/anna directory is not set on path. So to execute the program
from the directory not set in path, should execute by givin full path or use the ./ .
If you are in /home/anna use ./ means under current directory.
To set the directory on path
PATH=$PATH:/home/anna/

Submit
57. You want to the command foo to take its input from the file foobar and send its output to the program bar. Which of the following command lines will do this?

Explanation

Command> file : Redirect the standard Output to file.
Command>>file : Append the standard output to file.
Command Command 2>file à Redirect the standard error to file.
Command 2>>file àAppend the Standard Error to file.
In B foo taking the input from foobar using bar
file.

Submit
58. What command will tell you the location and path to a command?

Explanation

The "whereis" command in Linux is used to locate the binary, source, and manual page files for a command. It provides the path to the command's location on the system. Similarly, the "which" command is used to locate the executable file associated with a given command. Both commands help in finding the location and path to a specific command. The other options, "who" and "whatis," do not provide information about the location and path of a command.

Submit
59. If you are in your home directory, how do you list list files in the current directory and sub directories?

Explanation

The given options are all valid commands to list files in the current directory and subdirectories. The "ls -R" command recursively lists all files and directories in the current directory and its subdirectories. The "find ." command also recursively lists all files and directories starting from the current directory. The "find ./" command is equivalent to "find .", and the "find *" command lists all files and directories in the current directory and subdirectories.

Submit
60. What is the command to forcibly delete all files in the current directory ending in .sh?

Explanation

The correct answer is all of the given options: "rm -f *.sh", "rm --force *.sh", and "rm -f ./*.sh". These commands use the "rm" command to delete files in the current directory ending in ".sh". The "-f" flag is used to force the deletion without prompting for confirmation, and the "*.sh" pattern specifies that only files with the ".sh" extension should be deleted. The "--force" option is an alternative to "-f" and achieves the same result. The "./" before "*.sh" in the third option specifies that the files should be searched for in the current directory.

Submit
61. What command is used to change a file name?

Explanation

The correct answer is "mv" and "rename". Both of these commands are used to change a file name. The "mv" command is used to move or rename a file or directory, while the "rename" command is specifically used to rename files. Both commands allow the user to specify the current file name and the desired new file name, effectively changing the name of the file.

Submit
62. From the root directory, find files in /var/test/ directory with the name test3.txt

Explanation

The correct answer is "find /var/test/ -name test3.txt" and "find /var/test/ | grep test3.txt" because both commands will search for files in the /var/test/ directory with the name test3.txt. The first command "find /var/test/ -name test3.txt" specifically uses the find command with the -name option to search for files with the exact name test3.txt in the /var/test/ directory. The second command "find /var/test/ | grep test3.txt" uses the find command to search for all files in the /var/test/ directory and then pipes the output to the grep command to filter and display only the lines that contain the text "test3.txt".

Submit
63. How do you find files in your current directory that are world writable?find * -perm -o+w

Explanation

The correct answers for this question are "find . -perm -o+w" and "find * -perm -o+w". These commands are used to search for files in the current directory that are world writable. The "-perm" option is used to specify the permissions of the files being searched, and the "-o+w" option indicates that the files should have write permissions for others. The "." in the command represents the current directory, and the "*" represents all files in the current directory.

Submit
64. Using tail and grep, how do you view only lines with the word ERROR as they are being added to the file "test" (assuming test is a log file that is constantly being written to).

Explanation

The correct answer is "tail -f | grep ERROR". This command will continuously monitor the "test" file and display only the lines that contain the word "ERROR" as they are being added to the file. The "tail -f" command is used to follow the growth of a file and display new lines that are appended to it. The "|" (pipe) symbol is used to redirect the output of the "tail -f" command as input to the "grep ERROR" command, which filters and displays only the lines that contain the word "ERROR".

Submit
65.   Assuming you are in the folder /var/test/data/, what is the command to display the line with "ERROR" in the file /var/test/data/test and in all files in folders below /var/test/data/. Enter the command into your answer.

Explanation

The correct answer is "grep -R ERROR *". This command will search for the word "ERROR" in the file /var/test/data/test and in all files in folders below /var/test/data/. The "-R" option stands for recursive, which means it will search in subdirectories as well. The "*" is a wildcard that represents all files and directories in the current directory.

Submit
View My Results

Quiz Review Timeline (Updated): Mar 21, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Aug 03, 2013
    Quiz Created by
    Gauravjoshi
Cancel
  • All
    All (65)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What command is used to copy a file?
What command is used to change directories?
What command is used to change the permissions of a file?
Ls -al
What is the command to delete a file?
What command is used to change ownership of a file?
How would you show a list of files and directories that are inside the...
Head file
Mv file1 file2
Ps
Cp -r dir1 dir2
__________ command used to create an empty file.
Pwd
What command clears the contents of your terminal display?
Tail file
What command creates an empty directory?
You want to view a listing of previously entered commands. What...
What command allows you to view a file one page at a time?
What is the command to switch to the root user account?
The symbol represents home directory is?
What is the command to run a program with elevated permissions?
Which command to use for complete details of a command on the shell?
How do you see hidden files in your home directory?
What two commands display the status of processes on a Linux system?
What command is used to search files for a pattern?
Which command is used to view the complete file without modifying it ?
What is the command to search all files in your current directory for ...
How do you copy an entire directory structure? E.g. from Project to...
Chmod 644 finance.doc 644 equals to
You're now in directory X3 (see below). Moving to directory X1 using...
If you want to restrict users from directory content listing, you have...
You want to change the permissions on the file named "fifteen" so that...
In order to append the output of ls to a file called bazz, which of...
One single command to completely remove directory X1 and all it's...
What is the default directory path for system log files?
Which command will display the last lines of the text file file1?
What command shows you memory utilization?
The symbol represents current directory is?
Which command will list the contents of a directory, listed by file...
What is the command to view data in real time as it is being added to...
How would you remove a directory that is not empty?
If you want to protect files from content modifications, you have to
Which one of the following statements correctly describes the > and...
You're now in directory X1 (see below). Moving to directory X3 using...
How would you avoid accidentally removing files?
How do you find files in your current directory modified more than 48...
You want to search the file myfile for all occurrences of a string...
The command to restrict user not to delete finance.doc within...
Which one of the following commands is equivalent to the following...
What do you type in to move to the parent directory
If you want to protect files from deletion, you have to
The difference between "x" permission in file and directory, is
What is the command to take you to your home directory?
How do you view the last 100 lines of a file?
One single command to create new directory X3 inside new directory X2...
You have just typed the following three commands and got the following...
You want to the command foo to take its input from the file foobar and...
What command will tell you the location and path to a command?
If you are in your home directory, how do you list list files in the...
What is the command to forcibly delete all files in the current...
What command is used to change a file name?
From the root directory, find files in /var/test/ directory with the...
How do you find files in your current directory that are world...
Using tail and grep, how do you view only lines with the word ERROR as...
  Assuming you are in the folder /var/test/data/, what is the...
Alert!

Advertisement