Added warnings for potentially dangerous command (#20197)

Added warnings for mv and rm because they are notoriously dangerous commands, especially for beginners
This commit is contained in:
PatrickRJadwin
2018-10-28 10:45:27 -04:00
committed by Tom
parent 0fdef12b15
commit 09bc1429c0

View File

@ -27,12 +27,14 @@ When starting out with linux, there are some basic commands everyone should know
 7. **rm** - remove
- This command removes files, not directories. `rm file.txt` will remove the file named file.txt as long as it exists and is in the current directory.
- **Warning, this command is capable of destroying entire systems, use with caution**
 8. **touch** - creates file
- The touch command is used to create a file. It can be anything, from an empty txt file to an empty zip file. 'touch new.txt' will create a new file with name new.
 9. **mv** - move
- Use the mv command to move files through the command line. We can also use the mv command to rename a file. For example, if we want to rename the file “text” to “new”, we can use 'mv text new'.
- **Warning, this command is capable of destroying entire systems, use with caution**
 10. **right-click** - copy and paste
- This one is less of a command and more of a how-to, however, it is very useful for doing almost anything in a terminal on linux. To begin, highlight text like normal and then "right-click" on your mouse to copy a selection. You should see the highlighted portion become un-highlighted, this means you copied the selection. Now "right-click" on where you want to paste the selection and you're done.