FAQ
Login
GNU social JPは日本のGNU socialサーバーです。
Usage
/
ToS
/
admin
/
test
/
Pleroma FE
Public
Public
Network
Groups
Featured
Popular
People
Embed Notice
HTML Code
<blockquote style="position: relative; padding-left: 55px;"><section><a href="https://social.jvns.ca/users/b0rk/statuses/114072135264817091">Julia Evans (b0rk@social.jvns.ca)'s status on Thursday, 27-Feb-2025 05:47:04 JST</a><a href="https://social.jvns.ca/@b0rk" title="b0rk@social.jvns.ca"><img src="https://gnusocial.jp/avatar/88850-48-20230116234922.webp" width="48" height="48" alt="Julia Evans" style="position: absolute; left: 0; top: 0;">Julia Evans</a></section><article><p>shell history</p></article><footer><a rel="bookmark" href="https://gnusocial.jp/conversation/4637731#notice-9078199">In conversation</a><time datetime="2025-02-27T05:47:04+09:00" title="Thursday, 27-Feb-2025 05:47:04 JST">about 2 months ago</time> <span>from <span><a href="https://social.jvns.ca/@b0rk/114072135264817091" rel="external" title="Sent from social.jvns.ca via ActivityPub">social.jvns.ca</a></span></span><a href="https://social.jvns.ca/@b0rk/114072135264817091">permalink</a><h4>Attachments</h4><ol><li><label><a rel="external" href="https://gnusocial.jp/attachment/4207096">panel 1: your shell has a history of the commands you ransome ways to access history:* press the up arrow * run history * search it with Ctrl-R (in bash/zsh)panel 2: how long does your shell store history for?in bash, the default is 500 commands (not enough!)in fish, the default is 256,000 commandsif you're using bash, you might want to configure it to store more historypanel 3: when does your shell save history?by default, bash and zsh only save history to a file when you exit the shellfish saves the history continuouslypanel 4: history saves me SO MUCH time person (thinking): “<spends 45 minutes figuring out a complicated command>”... 3 months later … person (thinking): “search for THING in my history and just run it”panel 4: where is history stored?bash: .bash_historyzsh: run echo $HISTFILEfish: mine is in ~/.local/share/fish/fish_historyperson (thinking): “sometimes I copy over my shell history when setting up a new computer!”panel 6: a useful history tool: atuinatuin lets you:* save unlimited history * search history more easily * save commands as soon as you run them * sync your history (optionally)</a></label><br><a href="https://cdn.masto.host/socialjvnsca/media_attachments/files/114/072/135/001/102/021/original/ad923097394bfc9c.png" rel="external">https://cdn.masto.host/socialjvnsca/media_attachments/files/114/072/135/001/102/021/original/ad923097394bfc9c.png</a></li></ol></footer></blockquote>
Corresponding Notice
Embed this notice
Julia Evans (b0rk@social.jvns.ca)'s status on Thursday, 27-Feb-2025 05:47:04 JST
Julia Evans
shell history