How do I remove a directory in Ubuntu?

Khang Lê

New member
How do I remove a directory in Ubuntu?
Answer
The “rm” command by itself will remove individual files, while adding the “recursive” option will make the command delete a folder and everything within it. Click on the Ubuntu logo in the upper-right corner of your screen. Type “Terminal” into the text field that will appear below your cursor.
Photo in the article by “Wikimedia Commons”
Code:
https://commons.wikimedia.org/wiki/Commons:Village_pump/Archive/2013/07
Part 3 Using Vim
  • Type vi filename.txt into Terminal.
  • Press ↵ Enter .
  • Press your computer’s i key.
  • Enter your document’s text.
  • Press the Esc key.
  • Type :w into Terminal and press ↵ Enter .
  • Type :q into Terminal and press ↵ Enter .
  • Reopen the file from the Terminal window.
 

Tìm kiếm

Back
Top