Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

I'm testing the new BSSG test build.

Uncategorized
2 2 1

Gli ultimi otto messaggi ricevuti dalla Federazione
Post suggeriti
  • Just learned a bash trick.

    Uncategorized bash linux
    1
    0 Votes
    1 Posts
    4 Views
    Just learned a bash trick.~- means "the directory you were in before this one" So, if you want to copy a file from mercury and you are in jupiter:mercury$ lsufomercury$ cd jupiterjupter$ cp ~-/ufo .Kind of neat. Use with caution!🦇 #Bash #Linux
  • 0 Votes
    1 Posts
    4 Views
    Just reminded that here-documents at the #bash prompt aren't completely useless.At the interactive prompt, I wouldn't normally type anything like this:cat <<'EOF' >filesome textEOFbecause this takes fewer keystrokes:cat >filesome text^DBut the usefulness of the first version is that you get to use bash command recall while typing the text that goes into the file. In particular, if I've just edited and re-run a complicated command 10 times interactively until I got it right, and now I want to save it into a script:cat <<'EOF' >file.sh[press Up to recall the final working version of the complicated command]EOF
  • Rules

    Uncategorized programming bash csh ksh fish opensource fork
    1
    1
    0 Votes
    1 Posts
    12 Views
    Rules* Never execute scripts from the internet* Never execute scripts as root if you do not know what they do#Programming #bash #sh #csh #ksh #fish #OpenSource #fork #bomb #forkbomb https://www.cyberciti.biz/faq/understanding-bash-fork-bomb/
  • 0 Votes
    1 Posts
    10 Views
    Just launched a new site to showcase my open source work. Would love feedback: https://galtzo.com#oss #ruby #bash #go