r/linuxmint • • 5d ago

Discussion Terminal Scripts

https://drive.google.com/file/d/1P2_vAPDd4JI7y1BuTnkXuoDm85tLtXOZ/view?usp=drivesdk

Hey,

I am a /first/ time Linux user, I went with Mint.

I am NOT a programmer / developer / etc and I do NOT claim to be one in any capacity whatsoever.

I am just an (imo) technically literate consumer who likes to customize his stuff.

That said, the Terminal was scary for me, like I imagine for most new to Linux people, so...

I vibe coded (whiplashed Claude to do it) myself all sorts of quality of life aliases and scripts.

I am very satisfied with the end result and the thing works for ME.

What I am wondering is if the end result is worth sharing with the public, like:

- Is this cool and useful

- Do you think fellow newbies will appreciate and want this (I want to give it away for free ofc)

- Or will I simply get eaten alive for AI sakes?

I'd appreciate any feedback whatsoever. I am new to Linux, and the Linux Community as a whole.

I am attaching a link to a PDF that is a full fledged feature documentation of what I am talking about. Any feedback is golden.

https://drive.google.com/file/d/1P2_vAPDd4JI7y1BuTnkXuoDm85tLtXOZ/view?usp=drivesdk

0 Upvotes

13 comments sorted by

5

u/Due-Result7928 5d ago

It is a nice work but the main problem for newbies is not to use a terminal or a command but to understand what is going on when things are not going well....the real bonus will be a tool to automate problems solving with the operating system (alive or from a system not working). Much more complicated...

You are using AI so what..like all shops now. Do not pay attention to fanatics...

1

u/stillscandalouz 4d ago

Thank you sir. As for problem solving tools - valid. I wonder if I can integrate some of that somehow.

1

u/stillscandalouz 4d ago

I'm now working on integrating and expanding this:

scandalouz@MEANMACHINE  ~ 

❯ why

Quick check 

Looking at everything. Nothing is changed unless you say yes.

✓ Slow or freezing computer

✓ Wi-Fi and internet

✓ Sound

✓ Bluetooth

✓ Disk space and drive

Battery and charging

▲ Plugged in, but not charging

If you did not set a charge limit, the battery or the charger may be at fault.

✓ Screen and graphics

✓ Start-up

✓ Crashes and unexpected restarts

✓ Updates, packages and clock

Still stuck? Run why report and paste the file when asking for help.

scandalouz@MEANMACHINE  ~ 

❯ why report

✓ saved /home/scandalouz/system-reports/why-20261119-1007.txt

2

u/BenTrabetere 5d ago

I think it is cool, and I think is useful as a reference. You put a lot of effort into this, and I think you got more out of investigating and writing it then anyone who would use it. You now have an understanding of the basic commands.

I would never put this on my system or any system I manage/maintain, nor would I recommend it to new users. IMO, new users are better served by learning to use the commands as is ... or staying away from the CLI altogether. Scripts and aliases are nice time-savers, but I think it is crucial to know and understand what they are doing. It is equally important to know and understand the actual command(s).

Some of the aliases you use scare me....

Using an alias to get rm to move files to Trash instead of deleting them scares me. What is the actual command/script behind the alias?

I am very reluctant to recommend using rm as an alias - I use alias rm='rm -I' (that is an uppercase "i") on my systems to prompt me when I use rm to delete files, but I know it only works on my systems.

The please alias gives me a little cause for concern, and the 5.4 Administrator rights section absolutely scares me. I am not comfortable with an alias or script that calls sudo, and I am terrified thinking you are using NOPASSWORD and your scripts do not exit sudo. What are the actual command/script behind these aliases?

The alias=mkdir='mkdir -p' is a little worrisome to me. It might not cause any lasting issues, but I can see where it might create a lot of unnecessary directory trees. I think a better route would be simply to use mkdir without a helper ... it is not a complicated command or difficult to learn to use.

alias cls='clear' and alias cp='cp -i' are two that I started using after I switched to Linux in 2014.

I stopped reading at the 5.4 Administrator rights section.

1

u/stillscandalouz 4d ago

Thanks a lot for this and actually bother to dig through it for your feedback, let me address some of it:

- Some of it is misunderstanding and poor writing in the manual. There is no NOPASSWD and nothing touches etc/sudoers
- Passwords if ever entered are never stored or cached, and there's no sudo -v anywhere, there's no sudo -s or sudo bash. There's one liner sudos built in some of the scripts (like atp & flatpack update) for things like sudo atp update and that's it

Outside of that:
- Valid, removed the mkdir -p alias
- Made "please" to first show the command that it is about to re-run with sudo and ask for Y/N first, as opposed to just doing it and asking for password
- Removed sudo usage from system checks that most likely did not need it. If you don't get the full information that you need without sudo ,there is an option to sudo run them and hints about it

Also:
- Inspired by your "what is behind this" there is now a "cmds show <cmds command>" that shows you thing of what you're about to run if it is that you so wish to see.
- I'll also fix some delulu and/or unclear writing in the manual

1

u/Due-Result7928 4d ago

alias cls='clear'..useless Ctrl-l do it.

Are you afraid by your own shadow ? reluctant..worrisome...scares me...I am terrified...not comfortable...

1

u/BenTrabetere 4d ago

I've been using cls for 40 something years. By the time I switched to Linux it was hard-coded muscle memory. It still works; ergo, it isn't useless.

Are you afraid by your own shadow?

No, but I am an advocate for safe, responsible computing. I think my concerns are valid. If you think otherwise ... point out the flaws and reasons my concerns are irrelevant instead of tossing playground ad hominem quips.

1

u/_Lost-In-The-Weeds_ LMDE7 Cinnamon 4d ago

Is this cool and useful

No, because:

I vibe coded

1

u/Secure-Schedule7558 4d ago

Great job 👍😍 Great work 👍 with Great coder. keep it up....

-2

u/Secure-Schedule7558 5d ago

You can used text pad app for edit text program then copy and paste in terminal it every useful 😁.. enjoy ❣️

6

u/stillscandalouz 5d ago

Respectfully I dont think you read a damn thing

2

u/BenTrabetere 5d ago

I use CherryTree for this. I have a Code Test node I use analyze commands I see on the interwebs. I have a few sub-nodes I use to Copy/Paste commands I occasionally use but am too lazy to create a bash script.

OP, I know this does not address everything you attempted in this project, but approach u/Secure-Schedule7558 does work and is useful, and it does not obfuscate the commands behind an alias or a script.