I've customized the prompt in my Mac terminal like this:  export PS1="\[\e[31;1m\] \w $ \[\e[0m\] "   This way I get the /working/directory $ in bold red, but I also want to get the command I execute in bold red. Nonetheless, I want the output of the command to be of default color.  Basically I want this:    Any help, please?    EDIT: I tried the code on  but at least for me it is not working. It makes the command bold, but also the command output. And in fact I'm getting an extra ${OFF} tag printed after the command output and even a crazy behaviour when I press up key to see previous executed commands...
I'd like to make commands I've typed (input) into terminal stand out from all the output.   For example:  imac:~ buster$ chmod -R g-w myfolder  imac:~ buster$ cd myfolder imac:myfolder buster$ ls -l total 0 drwxr-xr-x   9 root  admin   306 Apr 20  2010 bin drwxr-xr-x   7 root  admin   238 Apr 20  2010 include drwxr-xr-x  73 root  admin  2482 May 18 17:16 lib drwxr-xr-x   6 root  admin   204 Apr 20  2010 man imac:myfolder buster$ echo Go Giants! Go Giants!  bold jumps to mind but I'd accept a color or even highlighting the whole line...   I'm sure there's a way to do this but it's not obvious to me...  thanks!
I have file1.txt    this is the original text   line2   line3   line4   happy hacking !     and file2.txt    this is the original text   line2   line4   happy hacking !   GNU is not UNIX     if I do: diff file1.txt file2.txt I get:    3d2   &lt; line3   5a5   &gt; GNU is not UNIX     How is the output generally interpreted? I think that &lt; means removed but what do 3d2 or 5a5 mean?  If I do:    $ diff -u file1.txt file2.txt   --- file1.txt        2013-07-06 17:44:59.180000000 +0200   +++ file2.txt        2013-07-06 17:39:53.433000000 +0200   @@ -1,5 +1,5 @@    this is the original text    line2   -line3    line4    happy hacking !   +GNU is not UNIX     The results are clearer but what does @@ -1,5 +1,5 @@ mean? Which is more polite, "Would you" or "Could you"? Suppose you want to ask someone to do something, say to tell you the way to a station. Which is more polite, "Would you tell me the way to the station?" or "Could you tell me the way to the station?"? SEO Removal Time? I was searching about removing the a domain/site being listed in Web Search Results (like, Google Search) and i found solution, .  I believe it will be the solution but what i still need to know is:   How long will it take to bring down my Website being listed from Search Engine Results? Can't get RTL8125B working on 20.04 Inequality similar to the Schwarz-Pick theorem General rule for partial fraction decomposition Where to locate "sockets" I am new to this, so sorry if its obvious. I am running a Debian server and installing the likes of UWSGI, NGinx etc on there. The configurations keep talking about pointing to "sockets".  In the build options I seem to be able to specify where the sockets for each program go. By default it looks like most of them go in /tmp (not all of them).  Is this a good place for them to go? I'm trying to keep things as organized as possible but just bunging them in /tmp doesn't seem like the best option. Points at integer distance How many points can one can place in $\mathbb{R}^n$, with the requirement that no $n+1$ points lie in the same $\mathbb{R}^{n-1}$-plane, and the euclidean distance between every two points is an integer? Why are 15 reputation points required to upvote? I think more reputation points should be required to add a new answer than to upvote an existing answer.  I don't continually watch for new questions, so usually when I find a question it has already been answered.  It seems bit inappropriate to answer an already-answered question in order to contribute to the conversation, but until you earn reputation, you can't upvote or comment; you can only add new answers, which prevents me from contributing at the moment as much as I would like to.  This seems backwards to me. If someone incorrectly upvotes a bad answer, the damage is minimal, as other users can down vote it and upvote the correct answers. On the other hand, an incorrect answer wastes the time of everyone who reads it.  So, IMHO, it should require more reputation points to add an answer than to upvote or comment on an existing answer.  I wouldn't say say that users should be prevented from answering unanswered questions until they have x reputation points, as that might prevent users who have answers from providing them, but perhaps it should be required if the question is already answered, to discourage users from reiterating previously given answers.  What do you think? Even though JRE 8 is installed on my MAC OS Yosemite, the error - " No Java Runtime present,requesting to install " Currently my bibliography says "Literatur" (german). But I want something completely different there. How can I achieve that? Verifying that the ideal $(x^3-y^2)$ is prime How to prove that the ideal $I=(x^3-y^2)$ in $k[x,y]$ is prime?    I have constructed a map from $k[x,y]$ to $k[t]$, which maps $x$ to $t^2$, and $y$ to $t^3$. Then, I want to show that the kernel is exactly $I$. But the difficulty is that how to prove the kernel is contained in $I$.  Could you help me? Thanks a lot! What are Guinan's powers from Star Trek: TNG? In Star Trek: The Next Generation episode "" (Season 2, Episode 16) Q seems disturbed by the presence of Guinan to the point of raising his hands as if to use his powers on her. Guinan responds by raising her hands as if to cast a "magic" spell of her own.   Is it ever established what powers she or her race may possess? How to disable gedit side panel? How do i disable this stupid side panel of gedit, that somehow appeared? There is nothing in the settings or plugins. Tried rm -r -f ~/.config/gedit as well, with no success. I don't have big screen and i find it totally useless and eating up what little free space for editing documents i have. See Screenshot What is the correct JSON content type? I've been messing around with  for some time, just pushing it out as text and it hasn't hurt anybody (that I know of), but I'd like to start doing things properly.  I have seen so many purported "standards" for the JSON content type:  application/json application/x-javascript text/javascript text/x-javascript text/x-json   But which one is correct, or best? I gather that there are security and browser support issues varying between them.  I know there's a similar question, , but I'd like a slightly more targeted answer. Gradle compiling slows down my computer The responsiveness is really bad on a newly installed Ubuntu 14.04 LTS.  Here's the specs of my laptop:  Quadcore Intel i7-4600U CPU @ 2.10GHz 12GB Ram 1TB Samsung EVO SSD   And when gradle is compiling, my entire system slows to a crawl, videos begin stuttering, browser scrolling lags... etc.  The same goes when a page refresh occurs in another window in Chrome, and while it refreshes, the HTML5 video in another tab begins stuttering.  How can I fix this?  Here are some logs:  $ vmstat -a 1 5 -   $ iostat -x 1 5 -   $ top -b - When should static_cast, dynamic_cast, const_cast and reinterpret_cast be used? How can I delete all files from a directory when it reports "Argument list too long" How to stop kernel messages from flooding my console? I'm using Centos 6, rsyslog logging. Console is flooded with kernel messages.  Klogd is not running (I'm using rsyslog) Rsyslog config does not direct anything to the console Even tried stopping rsyslog altogether  Still something is flooding my console with kernel log messages. What it is and how do I make it stop? Update: These are the messages generated by the kernel (hardware, iptables, etc.), stuff that goes out of /proc/kmsg, like this:  Shorewall:pub2loc:DROP:IN=br0 OUT= MAC=xxx SRC=xxx DST=xxx LEN=60 TOS=0x00 PREC=0x00 TTL=128 ID=15731 DF PROTO=TCP SPT=63767 DPT=3493 WINDOW=8192 RES=0x00 SYN URGP=0 How did Harry become a Horcrux? To make a Horcrux, certainly murder can't be the only requirement. It is obvious a proper spell is needed for completing a Horcrux. Voldemort could have made a thousand Horcruxes, as he had already murdered a thousand people. But, how on earth did Harry become a Horcrux, with Voldemort murdering his mom and not using the Horcrux-making spell? Certainly Avada Kedavra is not the spell used for making a Horcrux.