The information here is incomplete, if not misleading. Ctrl + Z is not used to simply background a job and it is significantly different from adding '&' at the end of a command. This guy probably knows it cz he is definitely an expert judging by all his other videos, but was too lazy to explain perhaps:- ----> SUSPEND a job (pause) and send to background & ----> Send to background (but keep it in RUNNING STATE, unpaused) so if you want your already running job to go to background and STAY RUNNING, you have to do the following 2 things: 1. Press Ctrl + Z to suspend the job temporarily and send to background, and still be on the terminal 2. typing next command --> bg ---> this keeps the job in the background but additionally resumes it, and you are still on the terminal. (to know the job ID number you can always run the 'jobs' command) This doesnt matter either ways if you are "backgrounding a text file edit" etc lol, but it DEFINITELY MATTERS when you are running a server in the background! Please like my comment to show love
@TheGacko2 жыл бұрын
hah - yes very misleading ... lol I was just on a job showing a guy to ctrl-z a task to gzip this massive file so we could carry on monitoring system .. well .. suffice to say -- today I learned I would suggest Jay really should do a followup -- a good test/exercise is to go through using the sleep command and ctrl-z then bg then keep stacking up some sleep commands in the background and see that they finish as they should etc. also need to cover the standard output .. and perhaps send output to file for a background running task so its not writing to the current standard out etc.
@manny87173 жыл бұрын
I was curious to know what the + and - mean after the job ID so I did ‘man jobs’ and it looks like they’re just last and second to last respectively. I guess not too important but good to know. Loving these videos. Thank you so much, Jay!
@Ancientreapers3 жыл бұрын
Ah and what's that number after Example:@8:18 [2] 4760 @9:10 [3] 4762 when one sends the app directly to the bg. I haven't looked it up yet. I'm going to guess the 4760 and 4762 are the byte sizes of the file?
@Ancientreapers3 жыл бұрын
Well I was wrong it's the process id. The output includes the job number, process ID
@BehzodSabirov3 жыл бұрын
Jay's lecture plus this - and my day is definitely done. Thumbs up
@YugoGautomo Жыл бұрын
@@Ancientreapers yes it process id. you could get the process number using `ps` command.
@ultradude54103 жыл бұрын
I love LLTV. Every video is clear and informative, but Jay still takes the time to cover the less flashy / less interesting yet still important stuff that most channels don’t bother explaining.
@DaveThompson_RocksLinux3 жыл бұрын
Brother, that was well done. I've never thought of backgrounding as desktop process management. Very cool.
@fadi_mousa3 жыл бұрын
You can uncomment set suspendable in /etc/nanorc file to enable suspension with ctrl+Z for nano
@sametcoban16049 ай бұрын
I have been following Jay for a while and really find your videos helpful. I purchased your book on mastering Ubuntu server and watching videos in tandem. Thanks for sharing all these and keep up the good work.
@luisrosal13223 жыл бұрын
This channel is getting better by the minute!! Thanks Jay.
@dagamore3 жыл бұрын
Great explanation of FG, sounds like a tool I need to be using more than I am, Thanks.
@asaskald3 жыл бұрын
All this time I didn't know the jobs command. Thanks Jay!
@synen3 жыл бұрын
what about bg is that a command too?
@AlexDresko2 жыл бұрын
This clears up so many questions I've had.
@Felix-ve9hs3 жыл бұрын
I just wanted to see what the video was about and ended up watching the entire thing to the end :D
@michaeldina11033 жыл бұрын
I always thought the best way to do this is with a multiplexer. This seems a lot more practical in some situations. Thanks!
@DL-xf3ur2 жыл бұрын
Thank you Jay! Awesome as always!
@chuckflowers54483 жыл бұрын
I would assume it's related to making nano approachable for people new to the terminal. I imagine most beginners would associate Ctrl+Z with undo and might find themselves with a bg nano process and not know how to recover it.
@ShinyTechThings3 жыл бұрын
Looks like I'm first! 😎
@bkrich3 жыл бұрын
Great info, I see this helpful if you’re at a console and need to do multiple things. I guess with any modern Linux desktop you probably would use tabs but bf and fg is certainly helpful to know
@unbekannter_Nutzer3 жыл бұрын
It is most useful if you do remote login via ssh to a terminal, and don't want to fire up a new xterm locally, to connect a second time to the same server. Or you started preparing some work in a terminal, went to a sub-sub-sub-dir, made new subdir, now you fired up a graphical program like geany or eclipse, but then you realize, you have 1 or 2 more things to do in the shell. Open another terminal and traverse the long path? No. Ctrl-Z, bring the graphic program to a stop, then bg, keep it running but don't have the starting shell been blocked.
@Randomizer92mx3 жыл бұрын
Mah boi thanks for the tutorial!
@JohnBortins3 жыл бұрын
Outstanding!
@m.j14363 ай бұрын
This command is amazing
@Carlos-kv6hx Жыл бұрын
Wish I knew about this sooner. Im over here going back and fourth with VIM for no reason.
@RoadRunner19803 жыл бұрын
This was great! I never heard of this.
@robwoolf6872 Жыл бұрын
What happens if I have something backgrounded and my putty session to a server times out please?
@igor.pasternak2 жыл бұрын
Amazing explanation! Thanks
@monolofiminimal3 жыл бұрын
I use this and screen, it's real handy.
@nathairsgiathach37282 жыл бұрын
Thanks man, great explanation!
@LearnLinuxTV2 жыл бұрын
Glad it helped!
@shlomobelleli25563 жыл бұрын
Excellent video
@midnitemonty3 жыл бұрын
I use VI / VIM alot.. "screen" is also a nice tool to bury and recall terminal sessions.
@alexgubin783 жыл бұрын
Thanks a lot for this video ;-)
@gokiburijin84783 жыл бұрын
Thank you!!!!
@13thravenpurple942 жыл бұрын
Great work Thank you
@nokkeli3 жыл бұрын
Finally ! A way to get out of Vim!
@andrewlhoover3 жыл бұрын
Very Useful!
@HaiNguyen-ot6xu3 жыл бұрын
Video on tmux and mosh please!
@udayarpandey39373 жыл бұрын
Hello Jay..waiting for the remaining Proxmox videos. :)) Thank you
@LearnLinuxTV3 жыл бұрын
Editing now! Sorry for the delay. They're coming. 😀
@d00dEEE3 жыл бұрын
You need 'disown', too, so you can log out the shell and leave the process running...
@wesgould13 жыл бұрын
or "nohup" --which does the same thing if you know you will be backgrounding a processing (and closing the shell/logging out) before you start it.
@evodefense Жыл бұрын
thx
@noceuclyde93452 жыл бұрын
very usefull !
@milosgajic233 жыл бұрын
nice!
@billykeed36093 жыл бұрын
cool commands
@weedeater643 жыл бұрын
/etc/nanorc to fix then background fuckery in nano. Un-comment the bind line. ##If you want to suspend nano with one keystrok (instead of with ^T^Z): # bind ^Z suspend main
@sethmoreschi747511 ай бұрын
Well, there you have it, why Steve Jobs wanted Unix/Linux as an operating system.
@KeithWhittingham2 жыл бұрын
It's a bit of a shame that bg wasn't better combined with exit so that exit did the same as fg if there were jobs running
@_den_3 жыл бұрын
I almost forgot about it, because I use screen
@Ranblv3 жыл бұрын
mint does not seem to mind backrounding nano edits