for real though, modern linux distros will rarely require you to enter a command line, and if you do, a quick internet search can usually help you find out what you need to enter
for real though, modern linux distros will rarely require you to enter a command line, and if you do, a quick internet search can usually help you find out what you need to enter
So what would happen if you just did "rm stuff/" without the recursive flag? Shouldn't it work the same way and delete all of stuff/ contents?
also how do you do that code font thingy
It’s been a while since I’ve used
rm
non-recursively, but it should delete all of the files in the stuff directory but preserve any subdirectories and their contentsAnd formatting for code is `___`
is a subdirectory basically the linux version of a folder?
Directories and folders are the same thing, yes.
https://unix.stackexchange.com/questions/44967/difference-between-cp-r-and-cp-a
test
test
rm stuff/
without the recursive flag fails with an error (rm: cannot remove 'stuff': Is a directory
) and doesn't remove anything. I'd guess the decision there was to have the least-destructive end result for ambiguous behavior, but I'm not entirely sure what the history is there, pretty sure that command is older than I am :)The code font thingy is the back tick character: `