Cmd line Flashcards
1
Q
Move directory
A
cd Foldername
2
Q
Create directory
A
mkdir Foldername
3
Q
Create a file
A
touch Filename.txt
4
Q
Move a file
A
mv Filename.txt destination
5
Q
Copy a file
A
cp Filename.txt
6
Q
Used for reading and combining files
A
cat texta.txt textb.txt»_space;textc.txt
7
Q
Search for patterns in files
A
grep ‘ls -l’ commands.txt
8
Q
Change permissions`
A
chmod
e.g chmod ugo (+/-) rwx
9
Q
Print text onto terminal window
A
$ echo Hello world
10
Q
Delete directory
A
rmdir Foldername