markstos@lemmy.worldtoLinux@lemmy.ml•So apparently you can just, type the word eject into bash and it will pop open your disk drive
74·
1 day agoYou mean the cup holder?
You mean the cup holder?
Right, it was an example of a pattern. In that case, -p could be used.
Yeah, not sure how I missed this one!
I like batcat aka bat, but nominate the humble ‘cat’ instead.
Want to copy a disk image to a device? You can use cat for that: cat file.iso>/dev/sdf
What to copy local stdout over ssh? Use cat.
ls -l | ssh myhost 'cat >out.txt'
That’s simple and surprisingly powerful.
For some cases I use “|| true”.
The idiom accepts that the preceding command might fail, and that’s OK.
For example, a script where mkdir creates a directory that might already exist.
120 MB? That’s more than a ZipDisk!
I knew I attended a well-funded modern college because all the computers had been upgraded with ZipDrives.