Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Suppose I gave following command to find jpg files in windows folder
find /windows -iname *.jpg
A long list will start scrolling then how to terminate command (like ctrl+break in DOS).Simply closing terminal window is not correct way.
Or lets say you want to start a program from a terminal window but would like to continue working from that same terminal. Start the program and postfix the command with a & the ampherstand will start the program in the back ground and return you to the prompt. i.e. emacs & will start emacs then return you to the prompt.
Any time you open a terminal that terminal becomes the parent process and anything you start within becomes a child process so to keep using the same terminal for other things you must run the child processes in the background or wait until they are done. Also it should be noted, if you have several child processes running in the background and you kill the parent process you will kill all the child processes also.
I ran
find /windows/ -iname *.exe
then list started scrolling then I pressed ctrl+z then entered bg so list continued & before I can write another command the list overwrites it so it is horrible when command's output is continuous because you have to wait till it finishes like in fg.
Any comments.
TO ALL READERS
(1)as billymayday told you can send search output to file if there are more than screenful of results also send searching to background by adding ' &' after command & run other commands in same terminal.
(2)As lazlow said you can run
<command> | more
to see 50 result at a time &
<command> | less
to scroll the list one by one with arrow keys.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.