TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

What's Your Go to Command When You Open a Terminal?

8 点作者 oraoraoraoraora超过 3 年前
for some reason I always enter ls, yet I already know what's in my home folder, its a reflex at this point.

19 条评论

oriori超过 3 年前
I use zsh and like keeping my terminal clear, so I found a zsh script called almostontop which clears on pressing enter.<p>link: <a href="https:&#x2F;&#x2F;github.com&#x2F;Valiev&#x2F;almostontop&#x2F;blob&#x2F;master&#x2F;README.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Valiev&#x2F;almostontop&#x2F;blob&#x2F;master&#x2F;README.md</a>
评论 #29159326 未加载
评论 #29158651 未加载
johng超过 3 年前
I started using &#x27;w&#x27; as a habit on BBS&#x27;s back in the day... then kept that up when I had an account on super computers in high school...(<a href="https:&#x2F;&#x2F;newfutures.aps.edu&#x2F;supercomputing" rel="nofollow">https:&#x2F;&#x2F;newfutures.aps.edu&#x2F;supercomputing</a>) it&#x27;s still muscle memory for me. I have no idea why as most of the machines I&#x27;m on now, I&#x27;m the only one with an account.<p>Old habits die hard. It&#x27;s just muscle memory at this point.
giuliomagnifico超过 3 年前
I have some some shortcuts to open some of my most used &quot;Go to&quot; SSH locations, I&#x27;m too lazy to manually write ssh root@192... so cmd+opt+r ssh into my router, cmd+opt+p ssh into RPi etc...
评论 #29158263 未加载
brezelgoring超过 3 年前
I always go to the same place, my programming directory, so for years I&#x27;ve done the sequence:<p>{cd Pr&lt;tab&gt;&lt;enter&gt;cd c&lt;tab&gt;&lt;enter&gt;}<p>Takes me to my current project folder, and there I can use gcc or vim or whatever I need to do. I thought about shortening it or setting my terminal to start in that directory but the ritual is important to me, it sets me in the right mood, for whatever reason.
评论 #29169685 未加载
no_time超过 3 年前
.bashrc runs tmux for me automatically but only if I ssh in. It removed just enough friction from using tmux that I finally put in the time to learn it. Would recommend&#x2F;10<p><a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;27613209&#x2F;how-to-automatically-start-tmux-on-ssh-session" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;27613209&#x2F;how-to-automati...</a>
评论 #29159494 未加载
rzzzwilson超过 3 年前
<i>cd</i> to get to the directory of interest. After that, probably <i>workon</i>.
zzo38computer超过 3 年前
It depends what I am trying to do; often the first command will be cd (to access whatever directory I will intend to work on), but not always.
f0e4c2f7超过 3 年前
Sometimes ls.<p>Other times I&#x27;ll hit enter a few times and then Ctrl+L to clear the screen.<p>Sort of feels like tapping my fingers on the desk.
thorin超过 3 年前
Probably &quot;pwd&quot;, from the days when it wasn&#x27;t the prompt &#x2F; my profile &#x2F; the shell I was using
johncoltrane超过 3 年前
The command I opened that terminal for.
potta_coffee超过 3 年前
history | grep &lt;thing&gt;<p>I use a number of tools and I&#x27;ve often forgotten an individual command, or when I&#x27;m using tools like curl or docker that have a long single line command that I know I can&#x27;t remember.
评论 #29164892 未加载
lowcoderev超过 3 年前
Lol, same here. ls and then clear. Now I&#x27;m ready to do whatever I want
warrenm超过 3 年前
99% of the time, I&#x27;m ssh&#x27;ing to a remote host<p>So it&#x27;s `ssh &lt;host&gt;`
isubasinghe超过 3 年前
no matter what I do `ls` as well
p0d超过 3 年前
cat .ssh&#x2F;config<p>ssh nameIforgot:&#x2F;to&#x2F;fix
Ftuuky超过 3 年前
ls -l as a force of habit I guess
评论 #29171991 未加载
tytrdev超过 3 年前
ls
mijndert超过 3 年前
tmux
评论 #29160913 未加载
flamesofphx超过 3 年前
clear