Software Engineering › Learn step by step › Y12 Programming for the Web
Item 280 of 426 · Year 12: Programming for the Web, 46 of 59
Shell commands (mkdir, cd, touch, cp, rm, cat, grep)
Code pattern
Jump to a topic
- Exam format, question types and command words (46)
- Year 11: Programming Fundamentals (69)
- Year 11: The Object-Oriented Paradigm (33)
- Year 11: Programming Mechatronics (29)
- Year 12: Secure Software Architecture (57)
- Year 12: Programming for the Web (59)
- Year 12: Software Automation (35)
- Year 12: The Software Engineering Project (47)
- Diagrams and modelling tools (18)
- Python, SQL, pseudocode and CSS patterns (33)
Definition
Command line tools used in scripts: mkdir makes a directory, cd changes directory, touch creates a file, cp copies, rm removes, cat shows file contents, grep searches a text file for a pattern.
Example: grep "error" log.txt searches log.txt.
Found in: syllabus, school notes.
Where you'll use it in the test
Syllabus area: Y12 Programming for the Web.
Question types it can appear in
- Multiple choice: Pick the option that matches the definition or example.
- Code reading: Code or algorithm reading: interpret a fragment and state its output or purpose.
- Matching or table: Match it to its description, example or category.
- Fill in the blanks: Choose this term to complete a statement or table.
How to use it
A model sentence
Code pattern: “Command line tools used in scripts: mkdir makes a directory, cd changes directory, touch creates a file, cp copies, rm removes, cat shows file contents, grep searches a text file for a pattern.” Then apply it: grep "error" log.txt searches log.txt.
In a short answer, give the definition in your own words first, then tie it to the situation in the question. Do not copy the example above unless it fits the scenario.
Go deeper
- Flashcard: Shell commands (mkdir, cd, touch, cp, rm, cat, grep) in Programming for the Web (Year 12) · study that set
- Memorise: SQL vs ORM
- Full term page: every question, note and marking comment for Shell commands (mkdir, cd, touch, cp, rm, cat, grep)
Check yourself
Write or say the “Shell commands (mkdir, cd, touch, cp, rm, cat, grep)” pattern from memory: the syntax and what it does.
Reveal the answer
Command line tools used in scripts: mkdir makes a directory, cd changes directory, touch creates a file, cp copies, rm removes, cat shows file contents, grep searches a text file for a pattern.
Example: grep "error" log.txt searches log.txt.
Could be tested as: Multiple choice, Code reading, Matching or table, Fill in the blanks.