Delete File & Rename Commands | 32 Bit OS Dev (in C)

Channel:
Subscribers:
5,840
Published on ● Video Link: https://www.youtube.com/watch?v=VJ5eXuQ4BhU



Duration: 1:27:09
1,016 views
29


Yes, doing this again since the file system is different now, and has directories and other goodies.
This video is adding an 'rm' command to delete files, some miscellaneous helper functions and fixes, and a 'ren' command to rename files at the end.

OS Dev Playlist:
https://www.youtube.com/playlist?list=PLT7NbkyNWaqZYHNLtOZ1MNxOt8myP5K0p

Git Repos:
https://git.sr.ht/~queso_fuego/quesos
https://github.com/queso-fuego/amateuros

Repo state at the start of this video:
git clone https://github.com/queso-fuego/amateuros
cd amateuros
git checkout a266d6240c12b51a70e697cf82d5f47a95f960ce

Repo state at the end of this video:
git checkout aae69a57bf0d16f8e483fb3888bd1aa8cfabc398

Next video:
- Delete directory and move commands, other commands, or something else from the ToDos.txt file.

Join the Community Discord: https://discord.gg/yKm4T89QFn

Contact:
https://queso_fuego.srht.site/contact.html

- Let me know if there's anything specific you'd like to see!

Questions about setup/software/etc.?
Check the FAQ: https://queso_fuego.srht.site/about.html

Notes:
- On audio/editing:
The VST plugins in OBS were actually turned on this time, at least for some eq. But it's not great, it's worse for harshness, as before it was softer but more muffled. I was trying to get it clearer but there's too much sibilance and gain for certain things now.

For post processing, I used davinci resolve's normalization to -18 LKFS, limiter to -4DB, and dialogue processor for extra de-essing and compression. But it'll be different after this depending on OBS changes.

Am redoing mic gain and the filter chain setup. It's like either close mic-ing and asmr/npr voice or less gain and farther away needs a lot of work to narrow down specific frequencies for sibilance and plosives. Very hard to get it just right, and with even volumes from compression.

Also looking at various de-clicker plugins, but while the ones I've tried work well they degrade the audio too much to use as a filter on the whole video.

A decent real time de-clicker that could run in OBS would be amazing. For linux there are some VST2 wrapper plugins that could maybe be used in OBS, that can load windows VSTs via wine or VST3 plugins.
I'd like to reduce or eliminate manual fixes for clicks and pops and things, with less editing, so I can get videos out more often with better quality.

Probably need to see an ENT or dentist and take care of some TMJ symptoms. I edit out a lot of jaw clicks and I'm not sure how to change my speaking, overall tense-ness, re-align my jaw or whatever else
needs to happen to stop it when talking.
It's very demotivating, takes a lot of editing time, and is largely why I'm not streaming. You don't want to hear the equivalent of mouse clicks jumbled in each word when someone is talking, it's terrible to listen to.

If recording & editing gets better/easier after this video, there may be fewer jump cuts and less manually edited audio. Maybe somewhat longer runtime with more pauses, as I'm a slow thinker, but it'd be faster to edit by skimming the footage and waveforms than paying constant attention for hours on end.

Either that or I make shorter videos, but I'm not good enough at programming and talking to fit content in shorter time frames.

Additionally, I should probably start drawing visual notes and diagrams. I usually see and run through the code structure and expected end results in my head, or in a notebook, but that doesn't show on the videos at all.

Outline:
0:00:00 Intro, improve command setup and use argv[] for input parms
0:11:01 Fix bitmap block writing in make_disk
0:15:19 Add more helper functions to clear/set bits
0:21:26 Delete file function
0:52:03 Digression to make memcmp (but I don't end up using it)
0:58:28 Back to delete file
1:06:04 Test rm command
1:11:01 Add rename command
1:20:41 Add underscore for shift+minus
1:25:50 Outro

Music credits:
HoliznaCC0 - In The End.mp3
Creative Commons CC0
https://freemusicarchive.org/genre/Chiptune

#osdev #filesystem #programming







Tags:
queso fuego
rm command
ren command
os dev
osdev
filesystem
file systems
c programming
delete file
rename file
shell commands