0
0
Linux CLIscripting~5 mins

First Linux commands in Linux CLI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the ls command do in Linux?
The ls command lists all files and directories in the current folder. It's like opening a drawer to see what's inside.
Click to reveal answer
beginner
How do you change the current directory in Linux?
Use the cd command followed by the folder name to move into that folder. For example, cd Documents moves you into the Documents folder.
Click to reveal answer
beginner
What is the purpose of the pwd command?
The pwd command shows your current location in the folder structure. It tells you the full path of where you are, like a street address.
Click to reveal answer
beginner
How can you create a new empty file using Linux commands?
Use the touch filename command to create a new empty file named filename. It's like creating a blank sheet of paper.
Click to reveal answer
beginner
What does the man command do?
The man command shows the manual or help page for other commands. It explains how to use a command and its options, like a user guide.
Click to reveal answer
Which command lists files and folders in the current directory?
Atouch
Bls
Cpwd
Dcd
What does the cd command do?
ACreates a new file
BShows current directory path
CChanges the current directory
DLists files
How do you see your current folder's full path?
Apwd
Bman
Cls
Dtouch
Which command creates a new empty file?
Als
Bman
Ccd
Dtouch
What is the use of the man command?
ATo show help/manual for commands
BTo change directory
CTo create files
DTo list files
Explain how you would navigate to a folder named 'Projects' and list its contents using Linux commands.
Think about moving into the folder first, then seeing what's inside.
You got /2 concepts.
    Describe how to create a new file called 'notes.txt' and check where you are in the folder structure.
    First create the file, then find your current location.
    You got /2 concepts.