Basic Linux Commands Flashcards
1
Q
Used for searching “text” in files
A
grep
2
Q
Changes the current directory
A
cd
3
Q
Changes file permissions
A
chmod
4
Q
Changes the file owner and group
A
chown
5
Q
Copies files
A
cp
6
Q
Displays the contents of a directory
A
ls
7
Q
Creates a directory
A
mkdir
8
Q
Renames a file and moves the file from one directory to another
A
mv
9
Q
Delete files
A
rm
10
Q
Displays the current directory
A
pwd
11
Q
Copies blocks of data from one file to another. Used to copy data from devices
A
dd
12
Q
Searches for regular expressions in a text file
A
grep
13
Q
Download files from a repository site
A
apt-get
14
Q
Shuts down Linux
A
shutdown
15
Q
Starts the visual file editor, which can be used to edit files
A
vi