Skip to content
SalimF edited this page Nov 13, 2020 · 9 revisions

Commands comes out my head

This List of useful Linux command I put here represent issue I have either with my Laptop/PC or my server .

Running command on background

Here will make any command you type on the terminal runs on the background without outputting any text .

ffmpeg -i input.mp4 c:a copy -c:v libx265 out.mp4 >/dev/null 2>/dev/null &

but wait a second does this command will still work if close the terminal window , Not it's wont the reason this command will be for from original command(programm) which is the terminal , closing the terminal will kill that process ,

This got me problem when I use that command on my server (back than I know nothing about fork/child process) , but after googling the issue I come around to this solution nohup

nohup ffmpeg -i input.mp4 c:a copy -c:v libx265 out.mp4 >/dev/null 2>/dev/null &

Clone this wiki locally