FYI, you don’t need to either on linux. Look up sudo.
FYI, you don’t need to either on linux. Look up sudo.
Maybe a little primitive, but I copy my .bash_history file to a folder with a dated name every afternoon using a cron job. Then I can just grep that for commands I know I ran in the past. ‘sort -fu’ will remove the duplicates in the results.
Same here. My Dad has been using Mint for years now, and wouldn’t know what to do in the command line. He gets on, does what he needs to do, and it just works for him.
I will take a look, thanks! And I got a huge ad right at the top of the page, how apropos.
There used to be lynx. Oh look, it’s still being maintained. Not sure how well it works though, might have to try it out:
Well damn. Isn’t that just ripe.
Not sure if you can use rust to write browser plugins, but I really want a plugin that when you right click a link, you have to option to open the link with javascript disabled. Chrome or Firefox.
Set up a cron job to run every hour that deletes them if they are older than 60 mins.
Eg:
0 * * * * find /var/tmp -type d -mmin +60 -exec rm -rf {} ;
I only have experience with Bitbucket, and absolutely none if this may be applicable to you, but we have to generate a key with certain parameters (a minimum) for them to work, and the public key has to be input into a field on your account. So while you do not need to “provide” a username to perform git commands, it is set up in your account as your private key. The command to gen the key is: ssh-keygen -t rsa -m PEM -b 4096 -C “your.email@domain.com”
Once you put your public key into your bitbucket account, using that key will mark all changes you make to you. Is this what you are talking about or am I just off in left field?
Son, is that you? I had a linux machine setup for my kids with a reverse proxy. I let them have a handful of websites that were whitelisted and they could go directly to. Everything else was off limits unless I ok’ed it and added it to the list. It still boggles my mind at the scoffs I would receive from other parents, and even my spouse at the time.
Sounds great in theory, but when you are trying to use awk to print out commands that might have something like printf and have to start escaping quotes, it gets really messy really quick. I have run into situations like this more than I care to as I like writing commands that will write out other commands. Spaces in filenames also mess with things like sed or sort where you want a specific column. Sorry, but in my opinion using the same character that was previously determined to be a delimiter is just a bad idea.
snap has made df and mount frustrating as hell to use!!
Christ you guys are making me feel old. I remember back in the day when a serial connection was made through an actual serial port. I know I have some serial cards around here somewhere. I have also used the tar command on an actual tape… Here’s a fun fact, if your tape drive (big reel to reel looking thing, not a cassette or other kind of ‘tape’) has an issue with rewinding, do not use your finger to manually spin the reel. Use a pencil. I finished reeling my tape back up once and realized I now had a blister on the end of my finger.
That’s one damn fine username you got there!!
Mine falls along with the people who were distracted. Was doing two deployments for work on night and on one I need to clear a cache. As I was typing the cd command, I happened to glance at the instructions for the other deployment and for some reason my mind switched to the deployment folder. I then typed out rm -rf *, and as I hit return realized I wasn’t in the cache subdir. Blew away our prod environment and it took hours to get it all restored. The restore kept asking the guy to go pull tape #xxx. It was nerve wracking because depending on the tape, there was a chance it was moved offsite. Got it all restored and turned it back on, and then had to start back from the beginning since the backup was from the night before. The other people doing deployments weren’t too happy, but I owned up immediately and we ended up changing the procedure. First, the cache clearing was done via a script after that, and I won my argument about not having to do two deployments simultaneously!
Whoever decided that spaces would be allowed in filenames deserves whatever level of hell awaits them.
You can also use regex expressions. In our work env, we have specific id’s that are allowed to run certain commands. And only certain people have the ability to “sudo su - [authorized id]”. Then when you are using that id, you have commands you can run specific to the job. Also worth noting, those id’s are set to not allow login. You have to sudo to be able to get to the id.
Most of this would probably be handled by the regular unix permissions and things like sudo access for commands that are needed. You can specify exactly what commands people can run using sudo. You can also make groups so that you can have people that can run certain commands in those groups. As far as default permissions to run files, that would be handled by your path and execute permissions. Same with umask settings. I worked at a large company and to my delight and a lot of windows users dismay, they forced us to have linux laptops for our particular jobs. I loved it, but a lot of people just weren’t happy. I found that I could do everything much easier when I had native tools for working with other unix based machines right there on my desktop.
Huh? I am saying that Windows is now collecting a ton of user data. If they feel that giving that up isn’t important then by all means go back to windows. But your data has a value to it, you just have no idea what it is, or even what is collected at this point.
Same. I also have an old Backbox distro that I used daily for years and every once in a while fire it back up for removeds and giggles.