I generally pipe the command ls with less and would like to execute a command while it is paging e.g. I come across a file that I would like to delete so I would like to execute the command rm {filename} whilst still paging. I would also like to hope I can use the same method while perusing man pages. If not how is it different?
|
|
||||
|
|
|
You can access the command line using bang ( So for example, if you type:
And temp.txt should be gone. Edit: By default it seems that man now uses less to page (for some reason I thought it used This is because invoking man changes the current working directory. On my machine (xubuntu, using
|
|||||||||||
|
|
The generic way to do this is by suspending the current job, executing the command and resuming the old job.
You should get a line similar to this:
You can suspend multiple processes at the same time. E.g.
If you have multiple suspended processes you can list them with |
|||
|
|
