Ed_P wrote: ↑07 Feb 2019, 00:57
In nemo I was putting /home/guest/.bachrc in the address bar and it wasn't finding it. It's not a folder, its a file!!
And actually it is
not .bachrc either.
Ed_P wrote: ↑07 Feb 2019, 00:57
I've been here 6 yrs, to the day actually, and I'm
still learning new things.
Unlike with AppleOS or SM-Witless, you tend to learn stuff on Linux. Not just, as we call it in German, Clicky-Bunty, could be translated as Clicky-Colour'y, meaning it is only about the GUI, and never about a shell, a terminal or a virtual terminal.
But often, this is where the real fun starts. You might have to first learn some stuff, but with scripts it is like so: It sure takes time to code one. But when you did code one successfully, quite some scripts do the menial repeating tasks for you, and it might have taken half a day, or maybe even two days to finally finish a certain script, but from now on, you just start it, probably with parameter or parameters, and the PC is doing what it was supposed to do from the very beginning: it is working on its own, and you just have to direct it towards what it should do.
While Clicky-Colour'y, meaning you have to do every single small thing by yourself, doing every task by hand, and not having the PC doing stuff automated at all.
Have you tried adding my psg function to your ~/.bashrc ? That way you would learn a bit more about why functions are such a neat concept, especially
outside of scripts.
___________________________________________________
The nice thing with functions, there are quite some stuff that won't work with an alias. But works as a function.
I never could figure out why that was, but with my three commands dx, fx and sx (all displaying a date+time info including a separator line, then executing a variant of df, free and cat /proc/swaps respectively) fx is the only that works as an alias. dx and sx won't work as intended and had to be coded as functions. sx, the changed to MB info of cat /proc/swaps is more complex, but fx and dx seem quite similar on the surface, but with dx, it never worked as it should, displaying an outdated date+time info line, and
I could never figure out why that was. The only solution I was able to come up with is changing dx from an alias to a function and then it worked as intended.
Some of the questions about certain coding issues I did ask on here (
https://forum.porteus.org ) , and some have been unanswered ever since. But that's life.
Most of the times I got good helpful replies.