Linux Flashcards
How do you use list command?
ls
ls /applications
How to change directory:
cd / (change to root dir)
cd .. (Change up one directory)
cd ~ (change to user home directory)
How to move file to another directory:
mv /folder1/file /folder2
Can also use it to rename.
How to get manual for command? How to exit?
man mv
Exit using q
How to make a directory? How to remove directory?
mkdir
rmdir
How to make file? How to remove file?
touch testfile.txt
rm testfile.txt
rm will remove files and directories with files.
How to find a file?
locate -i *test
How to clear terminal screen
clear
How to copy?
cp origfile newfile
What is grep command?
Searches text for match to given string.
grep ‘word’ filename
Name two options?
- i means ignore case
- r means recursively