Eureka!
Thanks a bunch!
Eureka!
Thanks a bunch!
Here you go, I think this is what you need, don't remember if it was what I used, but seem to be effectively identical:
Same. And if it's compressed you just add the appropriate shorthand in the letter soup somewhere in the middle:
z for gzip
j for bzip (for some reason)
..and I'm sure the other common algorithms have associated letters in tar. If not, pipe it
Pretty sure tar is some quantum artifact that changes it's parameters every time you need to use it.
I use -ntulpa because I was researching tulpas at around the same time when I was learning netstat and it stuck.
Press Ctrl-R then type "tar" and if it's not the most recent one you want, then press ctrl-r again until you find the right one.
I can do that since 2005 when I installed gentoo for the first time.
Honestly at this point, I remember zxvf and xvfj purely through muscle memory.
OK, I wanna know about the script. That sounds awesome.
Thereβs a lot I could do with that
Condolences on never sleeping again.
Or, perhaps, congratulations on falling asleep right away.
Hah, I was taught to do netstat -tulpn. "Tulpen" is German for "tulips".
Also, these days ss has generally replaced netstat (cause it's built into the kernel), so now I get to tell our trainees to run ss -tulpn.
Every time, they think I'm bullshitting them, which is hilarious.
To βask for the moonβ is to make an unreasonable request. The comment is a play on that saying. In this context, it means, βIβll do the impossibleβ
tar is usually smart enough to figure that .tar.gz is a compressed archive, so tar xvf suffices.
Moreover, .tar.xz archives are much more common nowadays, and the flag to tell tar to use xz decompression is J. Yes, uppercase J I shit you not, because all other letters of alphabet were already taken. The next commandline option added to tar is going to be a Unicode emoji symbol.
HAH! I know!!! The "correct" flags are always: Ctrl + r 'ffmpeg' an undefined amount of times 8D
If you use fzf you can just type "ctrl-r tar"
ffmpeg is always funny to me, because it feels like you could convert anything into anything, if you just knew the right flags, but 99% of my use is extracting a clip out of a video file.
And the command for that is in my shell history, so I wouldn't know the flags either. Β―\_(βΚβ)/Β―
Ahahaha I feel you. My ffmpeg scripts are similar: they work, but GOD knows why. I should print the manual and read before bed.
Shut. Up. That sounds amazing. Did it convert the video data into ASCII text or did it use ASCII characters to resemble the actual video?
You don't need more, you can just grep tar ~/.zsh_history
If you only want the first ten results pipe to head.
If you want more interactivity use less ~/.zsh_history
Then press / to search. Press n for next match
This comment got my brain stuck in an infinite loop: there's a rabbit on the Japanese moon, there are tons of moon themed jazz songs, the moon is cheeze, moonshine, moon rhymes with boon, Moon River is a beautiful song, Kame-sennin blew up the moon to make Son Goku revert to his human form, Moonraker was only "meh..."...
I still don't get it. WHAT does this expression mean π
Tar (some versions at least?) is actually smart enough to detect which format to use based on file extension of the output, so you don't need to remember which flag corresponds to which compressor. Examples:
tar -caf archive.tar.xz [files]
tar -caf archive.tar.bz2 [files]
# extract
tar -xf archive.tar.xz
tar -xf archive.tar.bz2
So you really only need to remember that c means create, x means extract
more ~/.zsh_history | grep tar
highlight
copy
paste
move cursor to change file
am i doing it right
or tar --help
e[x]tract; g[z]ip; [v]erbose; [f]ile
Reordered, and we can have [v]erbosely e[x]tract g[z]ip [f]ile, or tar vxzf [file]
I find it more difficult to remember other options. Might stick better if pronouncing the g in gzip similarly as GNU insists GNU be pronounced, with a hard gβnever really tried it, but sounds a little funny. Actually, I think I first remembered it as g sounding like the, making for extract the zip file, but with a soft g; I felt the former put too much emphasis on a letter not used as an option.
rsync over ssh