Basic command prompt Flashcards
1
Q
pwd
A
print working directory - shows the current directory
2
Q
cd
A
change directory
3
Q
ls
A
shows the list of the directory
4
Q
reading files
A
cat web.log20201002
5
Q
searching directories/files
A
| at the end of the comand
grep ‘text’
6
Q
text editor
A
nano php.ini
7
Q
sudo
A
superuser keyword
8
Q
checking last lines of the file (for reading logs)
A
tail -f web.log.20201002
9
Q
history
A
searching hsitory (| grep can be a modifier)
10
Q
What does “/” , “./”, “../” represent while giving path?
A
/ is the root of the current drive;
./ is the current directory;
../ is the parent of the current directory.