70
submitted 1 week ago by gun@lemmy.ml to c/linux@lemmy.ml

I'm a complete moron, I should've had that backed up and used trash...
I had to learn the hard way lol

you are viewing a single comment's thread
view the rest of the comments
[-] davel@lemmy.ml 43 points 1 week ago

I should’ve […] used trash

For those who don’t know: trash-cli

[-] UnRelatedBurner@sh.itjust.works 5 points 1 week ago

What an awesome tool that I wish I knew sooner. Also the && operator in sh. I think you can figure out what happened.

[-] clb92@feddit.dk 4 points 1 week ago* (last edited 1 week ago)

Also the && operator in sh. I think you can figure out what happened.

I'm guessing something like... Copy file/dir from location A to location B and then delete from A, but the copy had failed (and the delete unfortunately worked fine)?

[-] UnRelatedBurner@sh.itjust.works 6 points 1 week ago

I left the last sentence open ended, for comedic effect, but if you really wanna know:

I transcoded videos with ffmpeg, and tried to exit out of the bash script with ctrl C. the script was something like:

for
    ffmpeg file finishedFile;
    rm file;

my ^C broke out only from ffmpeg and before I realized what happened the file got removed and the next ffmpeg call filled my terminal. I tought the key didn't register, or something was stuck, so I pressed it again.. and again.. it cost like 45minutes of footage, wasn't that important tho.

load more comments (1 replies)
this post was submitted on 21 Nov 2024
70 points (97.3% liked)

Linux

48376 readers
1059 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS