kestrell: (Default)
[personal profile] kestrell
I'm trying to revive my knowledge of the command line interface, but can't remember how to change to the home directory. I'm actually trying to learn Git, so the help documentation assume I remember all the commands. I remember

Date: 2020-09-25 02:55 am (UTC)
metahacker: Close-up of a computer screen showing a linux terminal. (drwxrwxrwx)
From: [personal profile] metahacker
Eeew. Well, that's annoying. I do hope you find a terminal program that reads as it prints.

As mentioned above you can customize the prompt; if you edit a file named ~/.bashrc (i.e. named .bashrc in your home directory) you can add a line like this:

PS1='\\w '

That'll change your prompt to just your current path, with a space after it. Replace the w with a capital W if you want it to only have the last element of the path (i.e. the folder you are in, rather than the whole path to that folder).

For more on bash prompt changing, page looked like it might be helpful and laid out well:

https://linuxconfig.org/bash-prompt-basics

February 2024

S M T W T F S
    123
456789 10
11121314151617
18192021222324
2526272829  

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 3rd, 2026 09:12 am
Powered by Dreamwidth Studios