I have a few lines in a shell script whose function is to iterate through directories, match some names, and delete them. Some areas of the file system are write protected and I would like to leave ...

From time to time, when I SSH from my Android device to my home Linux server my terminal randomly start overwriting text that was previously outputted. I am using JuiceSSH as my SSH client, and I've ...

I have finally come up with a favourite PS1 format but I find it takes too long to load. I need help optimizing...
The part that is slowing it down is when I call the external commands in the prompt. ...

I have a Bash prompt that takes a while (~100-200ms) to generate, because it includes Git working tree status that takes some time to compute. Sometimes I start typing a command before it appears, but ...

I've noticed this on occasion with a variety of applications. I've often thought it was because the output was cancelled early (ctrl+c, for example) or something similar, and zsh is filling in a new ...

Used to be "root@localhost". The system is CentOS Release 6.4 in a VMware virtual machine. Yesterday I did some test of the user and group commands. And I noticed the tty1 login prompt changed to be ...

I have a custom $PROMPT_COMMAND in bash that logs the last executed command and its return code. I was using $? for the latter happily until I realized that for piped commands this was insufficient. I ...

I would like to add the output of a Python script into my zsh prompt but I am not sure how to do it?
Is this done by what is called "PROMPT EXPANSION" in the man pages?
Please someone set me on the ...

I'm running Aptana studio 3.3.2. The command echo $SHELL outputs /bin/sh.
However there is no value for the PS1 environment variable which I would
like to inspect. I cannot there is no .bash_profile ...

I got my git branch color set by this tutorial:http://www.bramschoenmakers.nl/en/node/624
But recenlty I've reverted my terminal background color, and the yellow branch name is nearly invisible under ...

In this question How can I get KornShell to display the date and time in the prompt? all the variables are visible in ksh except PS1 which appears to be getting replaced somehow.
How can I determine ...

I'm writing a shell script which executes a Python script. The Python script halts for a manual enter to be provided. However, I don't wan't to have to press enter each time to the script. Instead, I ...

This may be stupidly simple, but...
I am trying to make my own prompt for Prezto. I have been using numerous prompts for reference (I can post a list if necessary). My RPROMPT and cursor are refusing ...

Let's say on a single console I have tail -F running, showing the output of many log files in realtime.
Sometimes I need to run commands there too, however, and examine their output briefly, without ...

I am using a BeagleBone Black without any screen. It works fine, but sometimes when I turn it on it hangs and have to reset. I do not know why this is happening and since I cannot see whatever it is ...