ls is used to show all the file of working directory
Cd is used to select this file/folder
pwd is used to check in which directory we are working
cd d: is alse used to chang drive
mkdir is used to make our own directory
touch file.txt is used to make txt file
cd .. is used to back from directory
cd only cd is used to go to home directory
echo $PATH -> this shows all the paths (echo means diplay) path environment
variable
ls -R -> it is used to print all the folder and files recursivly using this
command
ls -a -> it prints all the hide files
cat > file.txt -> it creates file.txt and we write inside the file
cat file.txt -> this command is used to print the file content.
cat file.txt > total.txt -> this command is used to copy content from first file
then create new file put the content on it.
cat file.txt file1.txt > total1.txt -> total1.txt is created then file.txt
file1.txt content copied on it.
cat file.txt >> total1.txt -> it is used to append content of file to another
file.
echo "hello" > total1.txt -> hello overrides all the content of totoal1.txt
cat total.txt | tr a-z A-Z > upper.txt -> it is used to convert lower case
file content to upper case letters in another file.
(tr means translate it is used to convert from lowercase [a-z] to uppercase [A-Z])
mkdir random -> it is used to create folder
mkdir random/home -> it creates folder inside folder
touch random/test.txt -> it creates txt file inside random folder
cp file.txt copy_file.txt -> this command create copy of file.txt named as
copy_file.txt
mv file.txt random -> it moves files.txt inside random folder.
mv file2.txt newFile.txt -> file2.txt is removed and newFile.txt is created (it is
just like renaming file).
rm file2.txt -> this is used to delete the file.
cd . -> current directory
cd .. -> previous directory
not commands
~ tild sign shows to you are on home directroy