• 0 Posts
  • 54 Comments
Joined 1 year ago
cake
Cake day: June 13th, 2023

help-circle

  • Secondly, I’d attempt to write a bash script to walk a directory tree, cat out files, pipe it through grep and get every instance where VirtualBox is mentioned in a file. Trying the name of proccess, or of the executable too.

    Move to the top of the tree you want to search and do something like this:

    find . -type f -exec grep -iH “virtualboxexecutable” {} ;

    That will give you what you want without the need for a script. -type f makes the find command only search files, and -exec has it run the grep command on any files it returns with -iH giving you case insensitive results showing you the file it’s found in. Substitute ‘virtualboxexecutable’ with whatever the process name is that is being run. If you want to ignore binary files, the add in "| grep -iv “binary file matches” to the command. That will strip out any results where it has searched a binary file.






  • Here’s the way I look at it. This is your life and you get to play it out as you please. It’s really none of my business to begin with, and I am not really sure how this would come up in casual conversation, so I am hoping to most people it’s just not even a topic. I have kids, I have friends that have kids, and even with that basic amount of knowledge we don’t sit around chatting about things like that. Don’t overthink this, and keep in mind that you make your own decisions. Just because you don’t have kids doesn’t mean anything either. I have friends with no kids, and gotta say, sometimes I am a little envious. Wouldn’t change anything, but it’s nothing to feel bad about. Lighten up on yourself and just do what you want to do.



  • Lemmy seems a lot less toxic than Reddit.

    Not sure I am seeing the same. I posted a message about a bash command yesterday and it was almost immediately downvoted. And I have no idea why since it should work for what the person asking wanted/needed. That was one of my big issues with reddit was the sheer negativity that came out of that site and I know I am talking about a single downvote here, but it makes me pause. It has happened more than this one time which is why I get that feeling. I think some people really need to revisit the use of the downvote.












  • FigMcLargeHuge@sh.itjust.workstoLinux@lemmy.mlSSH login without user name?
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    4 months ago

    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 “[email protected]

    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?