mmtauqir
  • Member for 9 years, 5 months
  • Last seen more than a month ago
Apply command on all files in a folder
3 votes

find . -type f \ -exec ffmpeg -i '{}' -map 0:0 -map 0:2 -acodec copy -vcodec copy temp.mp4 \; \ -exec mv temp.mp4 '{}' \;`

View answer
Use sudo from another programm
Accepted answer
1 votes

Yes, that's perfectly fine. A lot of common utilities do that. You should however have some fallback in case the application does not get sudo - but that's just good script writing. Another way to do ...

View answer
Some basic questions about Linux kernel's security
5 votes

I will try to answer questions as briefly as possible. The questions you are asking are usually addressed in introductory operating systems courses at universities but I will assume you have not taken ...

View answer
Please explain what's going on in my XMonad config file
Accepted answer
1 votes

The =<< is the action composition in Haskell and requires knowledge of how monads work in Haskell and the related syntax. To try and understand exactly what's happening there, maybe look at the ...

View answer
Is there a way to stop having to write 'sudo' for every little thing in Linux?
Accepted answer
105 votes

Two options come to my mind: Own the directory you want by using chown: sudo chown your_username directory (replace your_username with your username and directory with the directory you want.) ...

View answer
Can you run a linux system properly without internet connection?
1 votes

Well you could play around with unix utilities, look up how the file systems works, do some coding etc. But from time to time you will get stuck when trying to do something (let's say figuring out ...

View answer
In Linux, is 'make folder/path/clean' same as running 'make clean' command in folder/path?
5 votes

No it is not. Your syntax would not work unless you have a rule for folder/path/clean in the directory that you execute the make folder/path/clean in. You can, for example, make a recursive clean ...

View answer
Does the order of partitions matter much?
3 votes

As far as I know, it does not make a difference in what order to place the partitions in. That being said, "random" is probably not the "correct" word to use here. Maybe you meant to say "arbitrary". ...

View answer
What does the eth0 interface name mean in Linux?
Accepted answer
39 votes

Your assumption is correct. The names however can be set/chosen by the user or the operating system that you are using. eth0 and eth1 is used because it's more intuitive than choosing an arbitrary ...

View answer
Automated partition selection in bash script
1 votes

You can use df -T to get all the partitions and their types. Then find the partition with type NTFS (or whatever your Windows partitions are fomatted as, e.g. Fat32?) like so: PARTITIONS=$(df -T | ...

View answer
Change zathuras display mode to single page only
Accepted answer
5 votes

You can use the "best-fit" mode and use Pageup + Pagedown (or map k,j) to jump to the previous or next page. Does that help?

View answer