Exam 1 Flashcards
This command shows the full path of the current working directory
pwd
Should look like this.
home/student
This command list files and directories in the current directory
ls
This command is used to change the directory
Cd
Move up one directory
Cd..
Change to root directory
Cd/
Used to visualize directory structure
Tree
To make a directory
Mkdir
Open your .bashrc file
nano ~/.bashrc
How do you create a file
touch
How would you make a file in a certain directory
Example
Touch home/index.html
Home is the directory and the file is index but only in the home directory
How would you create a root directory
Mkdir ~/my_website
This command is used to display the contents of files
Cat
What command prints text to the terminal
Echo
This command is used to sort lines of text alphabetically or numerically
Sort
This command searches for specific patterns in files
Grep