TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

8 pointsby oraoraoraoraoraover 3 years ago
for some reason I always enter ls, yet I already know what's in my home folder, its a reflex at this point.

19 comments

orioriover 3 years ago
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 未加载
johngover 3 years ago
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.
giuliomagnificoover 3 years ago
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 未加载
brezelgoringover 3 years ago
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_timeover 3 years ago
.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 未加载
rzzzwilsonover 3 years ago
<i>cd</i> to get to the directory of interest. After that, probably <i>workon</i>.
zzo38computerover 3 years ago
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.
f0e4c2f7over 3 years ago
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.
thorinover 3 years ago
Probably &quot;pwd&quot;, from the days when it wasn&#x27;t the prompt &#x2F; my profile &#x2F; the shell I was using
johncoltraneover 3 years ago
The command I opened that terminal for.
potta_coffeeover 3 years ago
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 未加载
lowcoderevover 3 years ago
Lol, same here. ls and then clear. Now I&#x27;m ready to do whatever I want
warrenmover 3 years ago
99% of the time, I&#x27;m ssh&#x27;ing to a remote host<p>So it&#x27;s `ssh &lt;host&gt;`
isubasingheover 3 years ago
no matter what I do `ls` as well
p0dover 3 years ago
cat .ssh&#x2F;config<p>ssh nameIforgot:&#x2F;to&#x2F;fix
Ftuukyover 3 years ago
ls -l as a force of habit I guess
评论 #29171991 未加载
tytrdevover 3 years ago
ls
mijndertover 3 years ago
tmux
评论 #29160913 未加载
flamesofphxover 3 years ago
clear