Discussion
Which of the following commands is/are used to create files in Linux?
Commands:
i) touch
ii) cat
iii) head
iv) finger
Answer: C
The commands that create files in Linux are touch and cat, so i and ii only. The touch command creates an empty file, and cat can create a file with redirection, as in cat > file. The head command shows the first lines of a file and finger shows information about users, so iii and iv do not create files. The options with them, or with only one command, are wrong. For example touch notes.txt creates an empty file, and cat > notes.txt lets the user type text into a new file.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development