command line basics Flashcards
What is a CLI?
A command-line interface (CLI) is a text-based user interface
What is a GUI?
A graphics-based operating system interface that uses icons, menus and a mouse: graphics user interface
man
manual used to find information about other commands
cat
cat command allows us to create single or multiple files, view content of a file, concatenate files and redirect output in terminal or files.
ls
The ls command lists files and directories within the file system, and shows detailed information about them.
pwd
pwd stands for Print Working Directory. It prints the path of the working directory, starting from the root.
touch
used to create, change and modify timestamps of a file.
mkdir
allows the user to create directories (also referred to as folders in some operating systems)
mv
mv stands for move. mv is used to move one or more files or directories from one place to another in a file system like UNIX.
rm
rm is a command-line utility for removing files and directories.
cp
cp stands for copy. This command is used to copy files or group of files or directory.