Saturday, March 14, 2015

rm - Python Tutorial

rmrm – Remove files via the command line in the terminal.  This command gives us the ability to quickly remove files from our computer.  You need to be careful when using the rm command there is no way to recover the files once they are rm.


rm Examples


#Remove a file using the rm command
Thomass-MBP:test Tommy$ ls
test.py test1.py test2.py test3.py
Thomass-MBP:test Tommy$ rm test.py
Thomass-MBP:test Tommy$ ls
test1.py test2.py test3.py

#Remove multiple files using rm
Thomass-MBP:test Tommy$ ls
test1.py test2.py test3.py
Thomass-MBP:test Tommy$ rm test1.py test2.py test3.py
Thomass-MBP:test Tommy$ ls
Thomass-MBP:test Tommy$

 




rm

No comments:

Post a Comment