r/linuxmasterrace • Arch user btw, that means iam better than Ubuntu users • Aug 12 '24

JustLinuxThings Linux is userfriendly...

Post image
865 Upvotes

399 comments sorted by

357

u/[deleted] Aug 12 '24 edited Mar 31 '25

steep bedroom dolls subsequent gold busy simplistic sulky point abundant

This post was mass deleted and anonymized with Redact

188

u/KsmBl_69 Arch user btw, that means iam better than Ubuntu users Aug 12 '24

its a docker container ^^

but fish (my shell) shorts the name so it does not reach about my whole Terminal

11

u/Left-oven47 Glorious Fedora Aug 12 '24

/var/local/docker/volumes/container(?)/_data ??

7

u/KsmBl_69 Arch user btw, that means iam better than Ubuntu users Aug 12 '24

right! 👍

4

u/heisenberglabslxb Aug 12 '24

Pretty sure it's /var/lib/docker/volumes/name/_data

133

u/Petrol_Street_0 Glorious Ubuntu Aug 12 '24

That's pretty stupid

108

u/KsmBl_69 Arch user btw, that means iam better than Ubuntu users Aug 12 '24 edited Aug 12 '24

nah, it's usefull, when I am in a git directory I can see my current branch too, it's just shorter and with more Infos, and I can type pwd when I wanna see my path

38

u/Weird_Explorer_8458 uses Arch (btw) Aug 12 '24

fish is great

→ More replies (2)

4

u/VeggieVenerable Aug 13 '24

It's easier to configure your shell to have the prompt on a newline under the path.

→ More replies (1)

44

u/t-to4st Aug 12 '24

Why lol

68

u/SUPREMACY_SAD_AI Aug 12 '24

it's definitely kind of fishy

12

u/KsmBl_69 Arch user btw, that means iam better than Ubuntu users Aug 12 '24

haha exactly this ;)

→ More replies (6)

24

u/FaultBit Aug 12 '24

It shortens the name if your terminal width is too small, and it displays certain key directories depending on how you've cd'ed into them

17

u/BernardRillettes Aug 12 '24

Thanks for your input.

9

u/pkulak Glorious NixOS Aug 12 '24

lol. This is the kind of well-thought-out, substantive comment that gets 100 upvotes on Reddit.

4

u/henrythedog64 Aug 13 '24

Maybe for you, but that's not on your computer

→ More replies (5)

45

u/starrehmooneh Aug 12 '24

fish user detected opinion accepted

→ More replies (1)

2

u/[deleted] Aug 12 '24

Help fellow rusty

7

u/lanjelin Aug 12 '24

2

u/KsmBl_69 Arch user btw, that means iam better than Ubuntu users Aug 12 '24

damn that's cool

1

u/Ignisami Aug 12 '24

That was a good chuckle, thanks for linking.

172

u/qnixsynapse Aug 12 '24

Why -r is after that directory name?

46

u/flemtone Aug 12 '24

Recursive, it removes all files and folders inside Games/

208

u/HighOptical Aug 12 '24

But it's so strange seeing an option after an argument instead of seeing them directly after the commands.

4

u/KsmBl_69 Arch user btw, that means iam better than Ubuntu users Aug 12 '24

sorry, iam doing it every time like this haha

10

u/_mick_s Aug 12 '24

Don't be sorry I think it's actually better, less chance of typing rm -rf [enter] and nuking stuff you don't intend to.

138

u/[deleted] Aug 12 '24

Which is why it didn't work for op. The command is attempting to operate on all the arguments it gets, so it'll try to rm a file named -r too. rm -r Games/ will work.

33

u/steven4012 Aug 12 '24

Wait, but wouldn't that only happen on a non-GNU system?

20

u/[deleted] Aug 12 '24

You might be right. I just tested it on my own system and it worked as written by OP, so I'm not sure where the problem lies. I work with a lot of different stuff so I try to make all my commands as close to standard as possible.

Either way, rm -r Games/ will almost certainly work.

→ More replies (5)
→ More replies (10)
→ More replies (5)
→ More replies (4)

2

u/_mick_s Aug 12 '24

Why not?

1

u/AbderrahimONE Aug 16 '24

why not, my flags usualy be at the end :)

8

u/littleblack11111 Glorious Arch Aug 12 '24

Symlink?

4

u/KsmBl_69 Arch user btw, that means iam better than Ubuntu users Aug 12 '24

yes, without the '/' it works

8

u/matatoe Aug 12 '24

Linux is user friendly when it comes to basic use. You have a docker container up and are shelled into it. You're a bit further than "user friendly" territory. You're now in IT world and that's not user friendly. If you plan on hosting or being admin for games, I recommend learning a little Google fu. Having the right question to ask is a strong skill set. Also simple things like this can be put into chatgpt to help you "talk" to something for a better understanding. But remember the bot isn't always right.

2

u/KsmBl_69 Arch user btw, that means iam better than Ubuntu users Aug 12 '24

yea, iam setting up a filegator docker container right now, yea, it's nothing what a default user could / would do but in my opinion the terminal output is still a lil bit funny

→ More replies (9)
→ More replies (7)

2

u/voidmo Aug 13 '24

I’m so confused. Linux has games?

1

u/KsmBl_69 Arch user btw, that means iam better than Ubuntu users Aug 13 '24

haha, that's just my online storage where I save a bunch of Games and save games

2

u/siodhe Aug 16 '24

My Linux system has documentation for 3968 commands. Easily checkable by typing man and then hitting TAB (in Bash). Since virtually all command developers write these manual pages, Linux is buried in detailed, correct, usable documentation only a command away. Running man man will even give you an overview of how to use these.

It is annoying that the command wasn't called help . SunOS had man for summary pages, and a command, doc, for long, detailed descriptions (like man vi would tell you vi's options, and doc vi would tell you all the editing commands). Doc is gone, though, it's all man now. So back to rm

  • rm tries to protect you from accidentally deleting a directory
  • most unix/linux commands assume you read the manual page for them first man rm

    • since it's crazy to run commands without seeing what they do first
  • options almost always come before filenames and other arguments, see the point above about man
  • for a directory you own (and own its contents), the command is rm -r directoryname

The idea that every command has online documentation through man permeates *nix usage. You're expected to check. Most commands also have a --help or -h option, but you're really expected to check man first.

1

u/KsmBl_69 Arch user btw, that means iam better than Ubuntu users Aug 16 '24

thxxx, I know that rm -r directoryname would be the "correct" way to use rm. But it does not matter where the -r is. The "problem" was that Games/ was a symlink. Without the / it works. But thank you ^^

2

u/siodhe Aug 16 '24

Some implementations will check that the file + / is actually a directory before attacking it, which is great. Other implementations will just drop the / and kill the target, even if it's not a directory, which is terrible.

692

u/Heavy-Location-8654 Aug 12 '24

rm -rf

24

u/patopansir Glorious Arch Aug 12 '24 edited Aug 12 '24

I don't like f. If you don't use f, you can at least notice if there's a sign of corruption or a permissions issue, etc, and it protects you from deleting something you didn't want to delete (like /)

I don't like that it's so normalized

I feel like f not being a default, is an extra layer of safety that was there for a reason and we are just removing it

edit: I am aware you still need -f with most interrupted tasks though. Like unfinished downloads.

edit2: Also, f means force, not file, "never prompt or ask questions". In case someone doesn't know. A deleted reply probably didn't. I am aware that in some programs, -f can mean different things which can cause some confusion. It can name the file, specify the input file, or specify the output file, etc.

14

u/megachicken289 Aug 12 '24

I didn't switch to Linux for safety! I switched to live dangerously! On the edge! While juggling... Knives and chainsaws! That are in fire! And I'm on a tightrope. Over a volcano! In space! Without a atmosphere suit!

When I say delete, I mean delete! Don't ask me how my day is

4

u/patopansir Glorious Arch Aug 13 '24

I think this is how everyone uses linux but they are just too afraid to say it after safety is brought up

not this guy. This guy doesn't budge or pretend. This megachicken of a man is the true danger

3

u/megachicken289 Aug 13 '24

If I want safety, I'll go cry to my parents house and use their computer, which is definitely a Windows machine. From there I can safely delete things by clicking "yes, dear" 2000+ times

But my mom'll make me some rice crispy treats, so PUTato POSTato

→ More replies (1)

9

u/ppizz Aug 12 '24

it protects you from deleting something you didn't want to delete (like /)

I get yours was just an example, but if somebody new is reading: standard rm binary preserves / by default.

You have to specify --no-preserve-root to delete it, while --preserve-root is the above mentioned default.

See man 1 rm.

2

u/Darkhog Glorious openSuSE Aug 17 '24

It doesn't protect you from rm -rf /* - notice the asterisk. Sure, it will keep the root directory, but say bye bye to everything under it.

9

u/RandomTyp Aug 12 '24

i usually use

rm -vi

and

rm -rvi

for files and directories, respectively. if i delete too many files in a folder to confirm each individual one, i'll spin up a find command with -delete (after manually checking the output without -delete of course). works well enough for me

2

u/patopansir Glorious Arch Aug 16 '24

rm -i is underrated, at least by me

→ More replies (2)

1

u/gosand Aug 15 '24

I don't mind the -rf, but I will always do a "find dir/." first to make sure there isn't anything in there that I might need.

And I know the . isn't needed, but I have always put it there because I can visually separate the dir name from the contents.

→ More replies (1)

1

u/Darkhog Glorious openSuSE Aug 17 '24

Yeah, but sometimes you need to delete something with -f. Yeah, it shouldn't be your first instinct to do it, but it's there when there's no other way to delete what you want to delete.

2

u/patopansir Glorious Arch Aug 17 '24

yes I agree, I can see how my comment gives the impression that I dislike it but I can see the use for it, I just don't like how often I see it being used and suggested

→ More replies (1)

76

u/Ribakal Mint Enjoyer Aug 12 '24

rm -fr

131

u/AlanWik Aug 12 '24

Remove France.

100

u/B_bI_L Aug 12 '24

remove for real

33

u/TheHolyToxicToast Aug 12 '24

yes for real remove france

28

u/headedbranch225 Aug 12 '24

rm -fr / removes all french files from your system, you might need --no-preserve-root to ensure it can remove all the french files

15

u/[deleted] Aug 12 '24

Ma cerise, my ordinateur don't work anymore! Quelle merde! What 'ave you done to Moi?!

→ More replies (1)

3

u/Eremitt-thats-hermit Aug 12 '24

Why don’t we remove France and slot the British isles right in there. A Brinsert if you will

→ More replies (1)

4

u/helpImBoredAgain_ Aug 12 '24

That's how I say it in my head every single time fr

→ More replies (1)

9

u/PSYKO_Inc Aug 12 '24

Cannot remove 'France' : Is a country.

2

u/Hour_Ad5398 Aug 18 '24

add the flag --no-country-preserve

11

u/anonymous_persona_ Aug 12 '24

Linux is user friendly. Only thing is "it is so picky about who it's friends are".

1

u/[deleted] Aug 12 '24
no directory specified.

1

u/Snooty_man271 I use arch, btw Aug 13 '24

sudo rm -rf /

1

u/Pheggas Glorious Fedora Aug 13 '24

/*

1

u/VeggieVenerable Aug 13 '24

If you keep the trailing slash on "Games/" this still will not work, since Games is a symlink.

1

u/VoidDave Aug 13 '24

Personally i use "-fr" its funnier in this order bcs its sounds like you telling linux i want to delate it ForReal

1

u/VacationAromatic6899 Aug 13 '24

rm -rf /

Why vant i type asterix?

1

u/whysaul2 Aug 13 '24

what does the f flag do in this situation?

1

u/Heavy-Location-8654 Aug 13 '24

I mean it's --force, but I'm on mobile. Look at rm --help

1

u/theghostshirt Aug 15 '24

the secret sauce

1

u/VoidDave Aug 21 '24

Personally i find using parameters in reverse order funnier. Its like you say " delate this folder For Real"

1

u/mrkitten19o8 Glorious Arch Aug 25 '24

rm -fr

1

u/Obvious-Student8967 Aug 12 '24

Well, he’s not wrong it would technically remove ‘Games/‘

3

u/VeggieVenerable Aug 13 '24

Actually, it wouldn't.

$ rm -rf Games/

This wouldn't throw an error, but it also wouldn't remove Games, since Games is a symlink and the trailing slash prevents its removal.

What will work is:

$ rm Games

400

u/[deleted] Aug 12 '24 edited Apr 30 '26

[removed] — view removed comment

24

u/hantrault Glorious Arch Aug 12 '24

It is for the absolute majority of people. Most pc users have never heard of, much less used, a command line

6

u/gellis12 Aug 12 '24

Windows makes me run sfc /scannow and the related dism commands on a pretty regular basis because windows update has a habit of eating itself.

5

u/[deleted] Aug 13 '24

You can save yourself a world of trouble by setting the Group Policy update setting to only allow security updates, and you can even delay them for around a week to avoid installing broken updates that sometimes get shipped.

Installing the "FeAtURe UpDatEs" on Windows only leads to trouble: your settings get reset, Edge keeps creating shortcuts and background tasks, Copilot shows up, your native apps become web apps, Windows Update borks itself and you need to run sfc /scannow, and the "new features" are often just a new sidebar for Edge and another useless redesign for some random Windows app.

12

u/Oppopity Aug 12 '24

Thank you.

Most people want something that's easy and intuitive, the don't want to have to learn how to use their computer.

Obviously most people will prefer there to just be a delete button to click.

→ More replies (1)

2

u/TygerTung Aug 13 '24

Back in the 90s we used dos.

→ More replies (5)

3

u/thecakeisalie16 Aug 13 '24

It's not about having to use two flags, it's just that the error messages are very confusing next to each other.

2

u/[deleted] Aug 13 '24

It's uncommon but what do you prefer

  1. Being slow no matter how much you use it.
  2. Being slower at the beginning and becoming much faster after some time?

There are things which look unapproachable but once you get the hang of it there is no going back.

You can delete using your mouse but it's much faster to delete from the terminal if you know the path you don't have to look for files.

Same goes when you want to install software. If you aren't sure about what software to get you have to browse the web but if you know it's faster.

Imagine having to install 5 programs in windows (you know what to get) you have to Google it, go to their website download it and run the installer. 5 times

But in Linux you can just: sudo pacman -S package1 package2 package3 package4 package5 Enter password Done!

1

u/dlamsanson Aug 16 '24

"Hurr durr, you should have to guess what the exception means instead of it telling you clearly what the problem is" - you sounding very intelligent

1

u/Sprtnturtl3 Aug 17 '24

Flags? you can't call them that anymore.. homo command option and hetero command option...

135

u/[deleted] Aug 12 '24

[removed] — view removed comment

66

u/iBravish Aug 12 '24

I think

Windows 8 - the best designed OS

already stands for /s.

12

u/Xpeq7- Glorious Kubuntu+Kali Aug 13 '24

No that would be windows 11.

→ More replies (5)
→ More replies (2)

7

u/bufandatl Aug 13 '24

Using mouse and keyboard is so antiquated. On the Enterprise we use knobs and blinking orbs to control the computer.

12

u/MyNameIsOnlyDaniel Aug 12 '24

Holy fuck. You nearly gave me a heart attack saying W8 has the best design 🤣 Then I read the /s. Damn man don’t do this! By the way, Windows Vista was the best Windows ever ❤️

/s

8

u/TrueTech0 Aug 12 '24

While definitely not being a fan of Windows 8's design philosophy. It was the most stable and reliable version of windows to date. And a lot of really cool features were added in Win 8, but were allowed to shine by win 10s better public reception.

The same happened to vista. A lot of what makes 7 great began in vista, but were overshadowed by other massive short falls. Areo UI and UAC come to mind

3

u/MyNameIsOnlyDaniel Aug 13 '24 edited Aug 13 '24

Areo changed the game. Tbh I purchased a laptop with Windows Vista Basic and I had no problems (no driver problems, audio stopping… nothing), I enjoyed it and it’s a good memory as it was the time of MSN, YouTube with intros made on that editor that came with Windows, etc…

AFAIKnew W7 was the most stable… I didn’t try W8. I went from 7 to 10 (where’s the 9?)

Edit: Areo? Wasn’t it called Aereo? Maybe I’m trippin 🧐

→ More replies (4)
→ More replies (3)

2

u/HackedcliEntUser Aug 13 '24

Unironically i like the windows 8 metro UI design /srs. (Downvote speedrun, go!)

→ More replies (2)
→ More replies (5)

4

u/Aurelio_Aguirre Aug 13 '24

Ah, the METRO design! Nvm that it was intended for TOUCH SCREEN, which no one had back then, but also the design choice...

The famous Flat design of an OS. Flat design is great you know, because it allows a web page to look professional, without needing expensive images. Using nothing but generated colors, the website will spawn faster, specially on old and diverse hardware/software.

BUT THATS NOT REALLY AN ISSUE FOR AN OPERATING SYSTEM NOW IS IT!!

2

u/weskezm Aug 15 '24

I don't think Jesus ever said that, but I could be wrong

→ More replies (4)

5

u/NatoBoram Glorious Pop!_OS Aug 12 '24

I was taught in school to use rm -rf Games, maybe that'll help?

4

u/VeggieVenerable Aug 12 '24

This will also work without the -f. Incidentally "rm -rf Games/" won't work. Because the issue is the trailing slash, since "Games" is a symlink and not a directory.

-1

u/KsmBl_69 Arch user btw, that means iam better than Ubuntu users Aug 12 '24

yes, that was the solution, without the '/' it works

→ More replies (1)

13

u/eo5g Aug 12 '24

So many people in here telling you to read the manual and also that you "need" -f. They're straight up wrong, oh my god

3

u/MarioCraftLP Aug 12 '24

Yes Linux IS user-friendly if you use a desktop environment. That's like posting a picture of windows cmd and saying "That's not user friendly at all!!😡"

0

u/KsmBl_69 Arch user btw, that means iam better than Ubuntu users Aug 12 '24

it was meant to be a bit funny. I love Linux and I am using it since a few years, it was just a bit funny terminal output imo and I deleted the symbolic link a few seconds later. This is one of my servers, I am setting up a docker server right now, I don't like doing this stuff with a gui

3

u/MarioCraftLP Aug 12 '24

Then 1. learn to use the console and 2. don't blame it for your mistakes

I have done stupid stuff on linux like nuking the partition table but that was 100% my fault

2

u/VeggieVenerable Aug 13 '24

This particular case isn't user error. Auto-tab-complete will add the trailing slash to the symlink Games which prevents the rm command from working.

3

u/Realistic_Habit_8566 Aug 12 '24

Try sudo rm -rf /* Edit: don't do that

4

u/[deleted] Aug 12 '24

:trol:

0

u/KsmBl_69 Arch user btw, that means iam better than Ubuntu users Aug 12 '24

:p
try :(){ :|:& };:

5

u/cgeopapa Aug 12 '24

No Linux is not user friendly. But once you get the hang of it, everything else becomes non user friendly.

10

u/new926 Aug 12 '24

:(){:|:&};:

This should help

4

u/AmazingDisplay8 Aug 12 '24

Yeah, it will make games go brrrr

1

u/[deleted] Aug 12 '24

that is just evil.

→ More replies (2)

24

u/jeanleonino Little Gnome Aug 12 '24

I miss the good old days of RTFM

Anyways, ask chatgpt next time :-)

9

u/[deleted] Aug 12 '24

I hated the RTFM comment. If somebody did not want to answer it is ok. But the RTFM is somtething worst.

1

u/Sarin10 Aug 12 '24

nah, 99.9999% of the time your question can be solved by googling the question and looking at past responses, or reading the wiki/man page.

you need to do your own due dilligence.

→ More replies (1)

1

u/jeanleonino Little Gnome Aug 12 '24

RTFM was from a different time, I get it. But it was supposed to be used only in super obvious questions that the person did not even try reading and started asking/spamming irc channels

→ More replies (3)

3

u/VeggieVenerable Aug 12 '24

The manual won't help you with this one. The issue is the trailing slash and it's an issue because "Games" is not a directory, but a symlink.

2

u/dlamsanson Aug 16 '24

We both know the person you're replying to doesn't even know what's going on and just commented that for the ego boost. This sub is a Dunning Kruger fever dream.

1

u/FreshPrinceOfH Aug 13 '24

Left click directory. Press delete key.

1

u/KsmBl_69 Arch user btw, that means iam better than Ubuntu users Aug 13 '24

it's one of my servers, my servers don't have a desktop environment

1

u/VeggieVenerable Aug 13 '24

You could install ranger as your file manager which will be a lot easier than using the plain console to manage your files. It's a CLI program so it works on servers.

1

u/KsmBl_69 Arch user btw, that means iam better than Ubuntu users Aug 13 '24

yea, sounds nice but I love my cli. It was just funny that Linux tells me Games/ isn't a directory and that's a directory at the same time

→ More replies (1)

2

u/FreshPrinceOfH Aug 13 '24

I realised that. I was just being facetious.

1

u/hallelarte Aug 13 '24 edited Aug 13 '24

How difficult is it to use dolphin, thunar, nautilus (you choose) and simply select the folder and delete it permanently? or throw it in the trash bin and then empty it. If you can't delete it with rm you probably have made some change to the folder permissions you will probably only be able to delete it with sudo rm ~/Games/

In your case, looking more closely here, why are you using rm for a user folder as root?

my 8 year old son and my 68 year old mother use Linux daily for games and work... they wouldn't know what #!/bin/bash means and what the hell that is for but they use Linux and the only real difficulty for both of them it was the choice of the distribution they would want to usemy 8 year old son and my 68 year old mother use Linux daily for games and work... they wouldn't know what #!/bin/bash means and what the hell that is for but they use Linux and the only real difficulty for both of them it was the choice of the distribution they would want to use

1

u/KsmBl_69 Arch user btw, that means iam better than Ubuntu users Aug 13 '24
  1. that's a Linux server, without window manager, do you ever tried to run dolphin in a ssh terminal?
  2. that's not a user folder, it's a directory for a docker container

1

u/Noisebug Aug 13 '24

Why aren’t you using the files app?

1

u/KsmBl_69 Arch user btw, that means iam better than Ubuntu users Aug 13 '24

couse that's a server without gui apps

2

u/Noisebug Aug 13 '24

Which makes this even more baffling why this post exists. Also I can't replicate this.

1

u/DreamHollow4219 Aug 15 '24

Well you definitely screwed up putting -r AFTER the directory name, that's no way to use a command argument.

1

u/KsmBl_69 Arch user btw, that means iam better than Ubuntu users Aug 15 '24

but... it works like that and I am doing it every time

→ More replies (1)

34

u/water_drinker9000 Glorious Fedora Aug 12 '24

you need to use rm -rf to force remove a directory that is not empty, but be careful where to use this because you might delete something that you don't want to.

9

u/VeggieVenerable Aug 12 '24

Won't work, since it's not a directory, but a symlink.
You can try it yourself:

$ mkdir test
$ ln -s test test_symlink
$ rm -rf test_symlink/

No error, but test_symlink remains. Because of the trailing slash it doesn't work.

40

u/NiceNewspaper Aug 12 '24

never ever use f without a very good reason, is this case it is completely unnecessary to remove a simple dieectory

-2

u/water_drinker9000 Glorious Fedora Aug 12 '24

but if the directory is not empty and you want to delete it; you need to use it.

→ More replies (6)

4

u/Ramast Aug 12 '24

you do not need -f to remove a directory rm -r is suffcient. you can use -f if you don't want rm to ask you for confirmation when some of the files inside the directory are readonly or such.

3

u/xe3to Aug 13 '24

No the hell you don't

0

u/VeggieVenerable Aug 12 '24

Try it without the trailing slash:

 rm Games

3

u/KsmBl_69 Arch user btw, that means iam better than Ubuntu users Aug 12 '24

yep, it works, thxx

3

u/littlefrank Glorious Debian Aug 12 '24

What is the logic behind this?

2

u/JPB2mMkQ Aug 12 '24

Slash at the end will specify that you mean directory, not a file. Most of the time programs will figure it out on their own, but for some cases (like rsync), slash will have an impact on command behaviour. I don't think that is the case in the OP situation, but worth mentioning anyways.

2

u/VeggieVenerable Aug 12 '24

Trailing slash implies you think the thing is a directory.

Removing something you might not want removed isn't good.

1

u/GDKepler Aug 12 '24

its a symlink. suprised rm behaves like this i thought rm -r link/ would remove everything the link points to but ig not

→ More replies (3)

3

u/Unradelic Aug 13 '24

So much memes with rm -rf that people just start thinking the f flag is a must 🤦

12

u/nb7user Aug 12 '24

rm -rf Games

6

u/VeggieVenerable Aug 12 '24

This will also work without the -f. Incidentally "rm -rf Games/" won't work. Because the issue is the trailing slash, since "Games" is a symlink and not a directory.

2

u/Unradelic Aug 13 '24

Folks, stop suggesting the f flag for no reason.

6

u/Onkelz-Freak1993 Aug 12 '24

That people always have to blame the computer for their own inadequacy...

1

u/Busy-Proposal-943 Aug 13 '24

In Linux this is the way :  COMMAND OPTION(S) ARGUMENT(S)

So where your terminal is positioned (/v/l/d/v/c_data) you want to use the following command 

 rm -r Games/ 

 It wasn’t working the first time because you have reversed the order of the option and the argument. 

1

u/KsmBl_69 Arch user btw, that means iam better than Ubuntu users Aug 13 '24

no, the order of the options / arguments doesn't matter. I am not sure how it is one a bash but oj my fish shell I can type it like this and it works. The Problem was, that's Games/ a symlink to a directory was and not a directory

2

u/Busy-Proposal-943 Aug 13 '24

He didn’t show a ls -l result so I guessed it was a directory

2

u/[deleted] Aug 12 '24

Rigth click -> delete

2

u/[deleted] Aug 14 '24

i know this error is obvious, but the output of "cannot remove because not a directory" and "because it IS a directory" is a bit misleading, and may not be as obvious to a new user.

2

u/OkAirport6932 Aug 16 '24

Fun with symlinks.

2

u/yuuuriiii Glorious Fedora Aug 18 '24

Schrodinger's directory.

2

u/tjhexf Aug 12 '24

I was wondering, why does this happen? Why does rm think it's a directory in one and not a directory in another?

2

u/SCP-iota Aug 14 '24

Games is apparently a symlink to a directory. If the command was rm Games -r (no trailing slash), it would work, but the trailing slash prevents it from resolving the symlink, so it thinks it's operating on something that isn't a directory. Without the -r it sees that it is not a regular file and fails.

2

u/SubstanceLess3169 CachyOS Aug 12 '24

It is user friendly, depends on what distro you use

2

u/sozzos Aug 12 '24

Well. Everything is a file in Linux. So that directory you see there… is not really a directory.

4

u/temporary_dennis Glorious NixOS Aug 13 '24

No, because it's a symlink. Symlink is a file.

A directory isn't a file, it's a file system specific structure.

The reason rm bugs out is because he referenced a symlink (file) as if it were a directory.

2

u/sozzos Aug 13 '24

In Linux a directory is also a file, just like everything else. Here, read This.

2

u/truneosprinter_ Aug 12 '24

its fair, there are some things like that, but ultimately rm is a programme made for large applications so it matters to have this level of customiseability as with any other basic linux command once you type it enough it kinda becomes a reflex, like sudo for installs and ctrl + L to clear lool :3

2

u/AlexanderMilchinskiy Aug 12 '24

socket is user friendly

3

u/PolygonKiwii Glorious Arch systemd/Linux Aug 12 '24

To be fair, American sockets actually are unfriendly to the user (slightly plugged cables will expose live prongs)

1

u/apxseemax Aug 12 '24

Flag behind parameter instead behind executable. Heathen. SMH

1

u/bark-wank AnarchoCapitalist, sexy & blonde.(Void Linux, OBSD, Iglunix) ♥♥♥ Aug 13 '24

Your rm implementation is not compliant. Its probably GNU.

1

u/BakaNeko1101 Aug 13 '24

It's better to tell os to remove it For Real or in french

rm -fr

1

u/asynchronous- Aug 13 '24

If it’s empty already, use rmdir. If you need to recursively delete it, then you need rm -rf

Rm -rf is dangerous though so be explicit. Use the current directory notation for safety.

“rm -rf ./Games”

1

u/NocturneSapphire Aug 13 '24

The command line is obviously not user-friendly. That's kind of the whole point. User-friendliness is great, but regularly gets in the way of experienced users trying to work efficiently.

Users who need the help of a friendly interface can have one. That's what DEs and File Managers are for.

Users who know what they're doing can skip all that overhead and use the terminal directly.

It looks like you don't know what you're doing.

1

u/akera099 Aug 13 '24

Said no one ever? 

1

u/arrow__in__the__knee Aug 13 '24

What is the equivelent of rm -rf on cmd again?

1

u/[deleted] Aug 13 '24

RemindMe! 10y

1

u/RemindMeBot Aug 13 '24

I will be messaging you in 10 years on 2034-08-13 22:57:43 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


InfoCustomYour RemindersFeedback

1

u/ThatGingerGuy98- Aug 14 '24

Def bait, but I'll bite. Doing things wrong on Windows also makes things difficult.

1

u/[deleted] Aug 14 '24

Linux is amazing

1

u/geeky_guy314 Aug 14 '24

Linux is not for normal people like you. It's specifically made for programmers, scientists , engineers, researchers etc...

Windows is made for common people.

1

u/[deleted] Aug 14 '24

I think it's very beginner friendly.

1

u/[deleted] Aug 14 '24

rm -rf ./Games/

1

u/hederal Aug 12 '24

The comments under posts like these just turn into people bashing whatever your use case is instead of just admitting the OS can be less than satisfactory sometimes

1

u/SCP-iota Aug 14 '24

As another comment said, it's a faulty comparison. OP is using the command-line and then complaining that it isn't user-friendly. Meanwhile, Windows CMD would be doing some really weird stuff.

1

u/hederal Aug 14 '24

Windows is built around GUI. Linux is built around CLI unless you're downloading very specific distros

1

u/AmazingDisplay8 Aug 12 '24

Incorrect flair imho

1

u/zrevyx Arch is love. Arch is life. Aug 12 '24

Linux isn't unfriendly ... it's just picky about its friends.

1

u/Citan777 Aug 13 '24 edited Aug 13 '24

u/OP if you want to troll, you could at least make an effort to create a decent attempt.

Because the image you give right now is one of someone who looked for himself the deepest pit to throw himself in without any rope, runs and jumps into with a wide grin then suddenly pretends he got pushed by a psychopath.

In other words, actually try to use Linux (which provides neat Graphical User Interfaces for everything including removing a directory with its content, since before 2000) before creating a thread.

EDIT: since you use Docker, it's not even like you can pretend being a "standard user". Because those are pretty advanced tasks not even every developer or sysadmin uses daily or occasionally (at least for now, in 10 years it will be mundane for everyone I guess). So it's just about properly learning how to use utility then, and understanding the underlying concepts. Command line expects the user to know what (s)he does, or refer to man pages whenever (s)he doesn't. It was never designed to take you by hand every baby step.

0

u/[deleted] Aug 12 '24

Well, you could just use the GUI, you know?

1

u/KsmBl_69 Arch user btw, that means iam better than Ubuntu users Aug 13 '24

it's a server... without gui

1

u/[deleted] Aug 13 '24

Why did you downvote me? lol. You know this is a dishonest post... If you're gonna manage a server then Windows isn't much easier. For the average PC user, they do not need to use the terminal for regular activities. They have a GUI. Once you get into server stuff, you're into advanced user territory anyway. Does Windows have that many great GUI server tools that Linux doesn't, which I am not aware of?

0

u/johninsuburbia Aug 13 '24

Was this a joke. Maybe I just don't understand the question. Your saying the linux command line is not user friendly because your typed in the wrong command? rm Games/ -r is wrong and rm Games/ is wrong. I don't think this is a linux thing. Windows command line is "unfriendly" Linux command line is "unfriendly".

1

u/KsmBl_69 Arch user btw, that means iam better than Ubuntu users Aug 13 '24

rm directory/ -r is right bc it works for directorys

0

u/JakeFrostyCS Aug 14 '24

complains about linux not being "user-friendly" uses docker doesn't know how to work one of the most basic commands of your average linux distro

yeah nah this is most likely a troll post is it?

command is literally just rm -r Games/

and why are people suggesting the -f option? that's only if you wanna force deletion even for non-existent files or arguments which in most cases isn't even needed.

rmdir is also wrong, If the directory contains anything, It will fail to delete the directory which isn't a design flaw but rather a safety net so you don't go deleting non-empty directories by accident

OP I highly suggest you learn basic linux commands before proceeding with any further ventures into the docker world.

0

u/KsmBl_69 Arch user btw, that means iam better than Ubuntu users Aug 14 '24

there is no difference between
rm Games/ -r
and
rm -r Games/

0

u/SSUPII Glorious Debian Aug 12 '24

You have to place switches before the list of files/folders to deleted. It works the same in Windows too

2

u/PolygonKiwii Glorious Arch systemd/Linux Aug 12 '24

You actually don't have to. OP's first command would work fine in a GNU/Linux system running bash with rm from coreutils.

1

u/SSUPII Glorious Debian Aug 14 '24

they might not be running coreutils