Performing Basic Linux Tasks Flashcards
Is the CLI the same on all Linux distros?
No. This will be distro specific (i.e. Red Hat/CentOS/Ubuntu)
What does /bin/sh typically do?
This typically links to another shell on the OS like /bin/bash or /bin/dash
What is the binary location for Red Hat / CentOS distros?
/bin/bash
What is the binary location for Ubuntu or Debian based distros?
/bin/dash
What does the command ‘uname’ do?
Prints system information
What does the command ‘uname -a’ do?
Prints all system information (kernel release, kernel version, network node name, architecture etc.)
What does the command ‘ls’ do?
This command lists all the current directories and files in your current working path, or, a path that you specifiy - but not hidden files
What does the command ‘mkdir’ do?
This command makes a directory within your current working path or one that you specifiy
What does the command ‘cd’ do?
This command is used to change directories
What does the command ‘pwd’ do?
This command is used to show the path of your current working directory
What does the command ‘echo’ do?
This command is used to display a line (or lines) of text
What does the command ‘touch’ do?
This command is used to change file timestamps, create files within your current working directory, or within a directory that you specify
What does the command ‘cp’ do?
This command is used to copy files and directories
What are three commands that you can use to view files from within the CLI?
- cat
- more
- less
What are three commands that you can use to edit files from within the CLI?
- vim
- nano
- gedit