To elaborate on that … if the file that the OP is trying to hack is in /sys then it’s not even a ‘real’ file system so all bets are off, and a regular text editor may be a bad idea. You may even get the situation that the ‘file’ is write-only.
So
![]()
And sudo echo >... won’t work anyway.
For the OP (@vkslputll ), the internet suggests
echo never | sudo tee /sys/kernel/mm/transparent_hugepage/enabled
but that might not be right since you haven’t confirmed exactly what you are trying to do - and messing around with systemy things can cause breakage. So care is advised.