Timeline for Write all tmux scrollback to a file
Current License: CC BY-SA 4.0
20 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 24, 2024 at 5:27 | comment | added | Vedmant | It's not saving all the lines, I set for example capture-pane -S -2000000 , I have around 200,000 lines, but it only saves around 175,000 and visible it starts not where command run in tmux started. | |
| S Jun 23, 2023 at 11:30 | history | suggested | Girish Sharma | CC BY-SA 4.0 |
The command saves the file at ~/ by default. It's confusing at first and seems like the command is unsuccessful.
|
| May 25, 2023 at 8:16 | review | Suggested edits | |||
| S Jun 23, 2023 at 11:30 | |||||
| Jul 5, 2022 at 19:09 | comment | added | Bastien974 | Note that the file is saved on the server running tmux, not on the server in the pane. It's probably obvious but I lost 5 min understanding that. | |
| Dec 13, 2021 at 16:49 | comment | added | Serious Angel |
@MohamedEzz, just in case save-buffer "~/filename.txt" should save to the directory of the user that Tmux is running as.
|
|
| Jul 29, 2021 at 12:14 | review | Suggested edits | |||
| Aug 1, 2021 at 6:34 | |||||
| S Jul 13, 2021 at 12:06 | history | edited | AdminBee | CC BY-SA 4.0 |
Bullet points; `-` is for all lines.
|
| S Jul 13, 2021 at 12:06 | history | suggested | Mateen Ulhaq | CC BY-SA 4.0 |
Bullet points; `-` is for all lines.
|
| Jul 13, 2021 at 11:27 | review | Suggested edits | |||
| S Jul 13, 2021 at 12:06 | |||||
| Nov 27, 2019 at 17:54 | comment | added | Steven Lu | Just noting that this way of fetching the pane contents wraps lines based on the pane's current size, whereas yanking the buffer interactively with copy mode preserves the original line breaks from the terminal output. This is a pretty important distinction. | |
| Nov 27, 2019 at 17:53 | comment | added | Steven Lu | @JeanPaul running tmux inside of tmux is supposed to work to refer to the actively running instance of tmux. Your config is probably messed up. | |
| May 20, 2019 at 14:21 | comment | added | Jean Paul | @BrunoBronosky Your solution doesn't work because it opens a new tmux session so it does not capture the current panel. | |
| May 20, 2019 at 14:16 | comment | added | Jean Paul |
@MohamedEzz For me, save-buffer filename.txt saved to home directory.
|
|
| Apr 26, 2019 at 16:03 | comment | added | Bruno Bronosky |
Anything you can do via prefix+:, you can also do as a command arg to the tmux binary. So, anytime an answerer gives you a hint like capture-pane, search man tmux for it. Then you will find that -p prints to stdout. Then you can deduce that the simplest solution is tmux capture-pane -pS -1000000 > transcript.txt. I've taught you to fish. Use this for all things tmux.
|
|
| Mar 28, 2019 at 3:01 | comment | added | L0j1k | +n>1 After logging in to upvote, it would appear this is at least the second time this answer has been helpful to me. XD | |
| Jul 28, 2017 at 20:49 | review | Suggested edits | |||
| Jul 28, 2017 at 21:46 | |||||
| Dec 23, 2016 at 12:46 | comment | added | Yordan Georgiev | and don't forget that MINUS in front of the <<amount-of-buffer-lines-you-want-to-save>> | |
| Dec 8, 2016 at 9:54 | comment | added | MohamedEzz |
save-buffer filename.txt seems to save the file in /, not in pwd (current directory). Instead, I provided an absolute file path and it worked like a charm
|
|
| Dec 17, 2015 at 17:16 | history | edited | Sauce McBoss | CC BY-SA 3.0 |
Removed double capture-pane
|
| Oct 17, 2015 at 14:59 | history | answered | Sauce McBoss | CC BY-SA 3.0 |