home.social

#bashshell — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #bashshell, aggregated by home.social.

  1. Conocías la existencia de la opción “—exchange” en el comando “mv”? Pues yo no. Te permite intercambiar el contenido de dos archivos directamente sin utilizar un archivo temporal.
    Visto en: linuxhandbook.com/newsletter/2
    #Linux #BashShell

  2. Mastering Bash shell commands can greatly simplify tasks in data science, boosting efficiency and productivity. Discover the 10 essential Bash commands for data scientists, from file management with `ls` to data manipulation using `awk` and `sed`. Enhance your workflow and focus on insights with these powerful tools. #DataScience #BashShell #Programming #Efficiency #TechTips kdnuggets.com/10-essential-bas

  3. Fun #BashShell #LinuxTip for when you want to remove a bunch of similar commands from the bash history.

    > for i in `history | grep -i [part of command to remove] | cut -f 1 -d ' ' | sort -r ` ; do history -d ${i} ; done

    The [part of command to remove] should be enough so you find the commands you want to remove, without accidentally including others.

    The "sort -r" reverses the results so history deletes from the end, not the top. Very needed. #LearnedFromExperience

    #Linux #CLI #CommandLine

  4. Fun #BashShell #LinuxTip for when you want to remove a bunch of similar commands from the bash history.

    > for i in `history | grep -i [part of command to remove] | cut -f 1 -d ' ' | sort -r ` ; do history -d ${i} ; done

    The [part of command to remove] should be enough so you find the commands you want to remove, without accidentally including others.

    The "sort -r" reverses the results so history deletes from the end, not the top. Very needed. #LearnedFromExperience

    #Linux #CLI #CommandLine

  5. Fun #BashShell #LinuxTip for when you want to remove a bunch of similar commands from the bash history.

    > for i in `history | grep -i [part of command to remove] | cut -f 1 -d ' ' | sort -r ` ; do history -d ${i} ; done

    The [part of command to remove] should be enough so you find the commands you want to remove, without accidentally including others.

    The "sort -r" reverses the results so history deletes from the end, not the top. Very needed. #LearnedFromExperience

    #Linux #CLI #CommandLine

  6. Fun #BashShell #LinuxTip for when you want to remove a bunch of similar commands from the bash history.

    > for i in `history | grep -i [part of command to remove] | cut -f 1 -d ' ' | sort -r ` ; do history -d ${i} ; done

    The [part of command to remove] should be enough so you find the commands you want to remove, without accidentally including others.

    The "sort -r" reverses the results so history deletes from the end, not the top. Very needed. #LearnedFromExperience

    #Linux #CLI #CommandLine

  7. Fun #BashShell #LinuxTip for when you want to remove a bunch of similar commands from the bash history.

    > for i in `history | grep -i [part of command to remove] | cut -f 1 -d ' ' | sort -r ` ; do history -d ${i} ; done

    The [part of command to remove] should be enough so you find the commands you want to remove, without accidentally including others.

    The "sort -r" reverses the results so history deletes from the end, not the top. Very needed. #LearnedFromExperience

    #Linux #CLI #CommandLine

  8. @epidiah I'm a huge advocate for #PowerShell on #Linux - it's everything a shell should be in the modern age.

    But... I still fire off a quick #bashshell as often as not when I can't remember the PSH way to do something. Old habits die hard.

  9. Anyone interested to follow and be followed by me?

    I'm interested in:




    Look forward to hearing from you ☺️