PG Certificate Course in Data Science, AI & Machine Learning by IIT Roorkee. Apply Now & Get up to Rs. 75,000 OFF! Offer Ends in:Apply Now
To delete a file you can use
rm command like:
For deleting directories we have to use
-r option with the command.
Also, to delete all files of a particular extension, we can replace file_name with *extension. So, to delete all
txt files in a directory, we can use
cd ~command to go to your home directory
z/y/xcreated in the previous question.
Note - Having trouble with the assessment engine? Follow the steps listed here