Command Line Flashcards
What is a CLI?
A Command-Line Interface is a user interface that allows a user to interact with the operating system through text.
What is a GUI?
A Graphical User Interface is a user interface that allows a user to interact with the operating system through graphical representations (e.g. icons, menus, windows).
Give at least one use case for command: man.
To view the manual for the man command: man man
Give at least one use case for command: cat
To create a new file: cat > NewFile.txt
Give at least one use case for command: ls
To list contents of the current directory: ls
Give at least one use case for command: pwd
To print the path of the current directory: pwd
Give at least one use case for command: echo
To print a ‘Hello, World’: echo Hello, World!
Give at least one use case for command: touch
To update the timestamp on a file to current time: touch File.txt
Give at least one use case for command: mkdir
To create a new directory in current directory: mkdir ./new
Give at least one use case for command: mv
Rename files: mv OldName.txt NewName.txt
Give at least one use case for command: rm
Delete files: rm UnwantedFile.txt
Give at least one use case for command: cp
Make a copy of a file: cp Original.txt Copy.text