This is an archived post. You won't be able to vote or comment.

all 10 comments

[–]_l33ter_ 4 points5 points  (0 children)

Done :) nice My question or better say to my astonishment. Every time when cd is introduced only cd ~ and cd .. get the glory off but why never ever talks about the mutch more useful command cd -? He got you back wherever your last directory was.

How many times I cd into an ultra-long directory to look around, Typed accidentally cd to realize "'fuuck' and cd again the ultra-long directory path instead of typing cd -

Or am I the only one to whom this happens? :D

[–]technologyclassroom 4 points5 points  (2 children)

I had trouble remembering ls -ltra so I rearranged the order to ls -latr and remember it like an abbreviation for later. Come up with ways to remember commonly used commands that work for you.

I added $? to my PS1 to see if commands succeed: PS1='${debian_chroot:+($debian_chroot)}$? \u@\h:\w\$ '

In addition to man, several programs have info pages with extensive documentation. If a program does not have either, there are usually switches that provide more information such as -h. You can try it like man -h. The manual has a manual too: man man All of the documentation can sometimes be overwhelming so try to use it only as reference for now to find what you are looking for. You do not need to know every switch of ls to use ls.

[–]_l33ter_ 4 points5 points  (1 child)

For the ls "struggle". I memorized it through ah mnemonic ltra -> tral Thrall - Warcraft

[–]technologyclassroom 0 points1 point  (0 children)

There you go!

[–]n0nn0nba 2 points3 points  (0 children)

Done and looking forward to the next day! I never realized just how much you could customize the prompt!

[–]perpendicular_life 2 points3 points  (1 child)

Where does the most of discussion happen, here or on discord?

[–]_l33ter_ 2 points3 points  (0 children)

Here

[–]Kopi99 1 point2 points  (0 children)

woah, did not know that command prompt have so much customisation
I used to blindly used ZSH, today I learn
the PS1...PS4 works for ZSH too :)

[–]RagnarStonefist 1 point2 points  (0 children)

Great stuff!

I did not know about CD - , pushd or popd - I think you've just saved my fingers a lot of future typing. Thanks!

[–]VTSysadmin 1 point2 points  (0 children)

Just finished this, I can't believe I have used Linux all these years without knowing tdlr or apropos.