terminal commands Flashcards
changing directory
cd
cd /
listing all the files in the directory
ls
ls -l
ls –help
to check in which directory you are working right now
pwd
copying files along with an example
cp
cp /
command to move files along with example
what is the basic thing that moving a file does?
mv
mv /
Which command do you use to open files from the terminal?
Which is the alternative command you use to open the files in a different terminal?
cat
less
How do you print something onto the terminal?
How do you use the same command to put the entered data into a new file?
echo
echo “message” > filename.txt
Which command do you use to quickly create new files?
Can you create multiple files using the same? If so how?
touch
yes
touch file1 file2 file3 etc
which command do you use to remove files?
rm - remove
which command do you use to make and remove directories?
mkdir
rmdir
which command do you use to clean the terminal?
clear
which command do you use to filter out the information?
grep
which command do you use to get the manual of any command?
man
can you convert files to executable files from the terminal? If so how?
yes
chmod
Which command do you use to exit from the terminal?
exit