Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Hi,
Is there any file by which I can see what has happened inside the various terminals I use ?
ex. suppose I give
$ ls -la
.........
.........
.........
$ vim /some/file/
$ cd /some/dir/
$ ./somescript.sh
........
........
etc etc..
I want not only the history of command used, but also there output as shown in the terminal. i.e I want the output of "ls -la" also etc.
A file which has whatever you type/get on the terminal.
Is there any system file which stores "all" the contents of "all" the terminals in use?
I know the use of redirection operators , but for those commands its not done.?
I really doubt that there is anything like this---In my case, such a file would become very large in a matter of days.
I believe that--at the beginning of a session--you could set up a redirect to a file. Then you can probably do something like call the terminal program with that command as a first argument.
Wow, a history of commands is most often more than I want. The output of them would probably mean I couldn't find the needle for the haystack.
However, you might take a look at screen. You can set up a history buffer in screen which includes all the output on the terminal. It can create a screen log file as well as a scroll back buffer. Take a look at the -L and -h options.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.