I am using gnome-terminal. I often work on large projects where there are lots of sub-directories and I have to compile them from the terminal. It's a very problematic to work with long-path terminal prompt while you have one monitor.   Assume you are in a directory,  sbmaruf@lenovo:/sys/dev/block/7:6/bdi/subsystem/7:7/power$   Now while I am using the terminal, is there any tricks or shortcuts to make the current address to a dummy string or text so that it may easy to work. Like if I want to show the above address as,  sbmaruf@lenovo:proj1$   where proj1 = /sys/dev/block/7:6/bdi/subsystem/7:7/power. I want do it on the go. like while I am using the terminal can I do it in a short amount of work.
13455
Currently it is:   michael@Castle2012-Ubuntu-laptop01:~/Dropnot/webs/rails_v3/linker/spec/controllers$   Outside of renaming my machine and directory structure...  How could I make it be something more like:  michael:controllers$
98839
As a default, the terminal prompt shows something like:  user@system:/folder1/folder2/folder3/folder4$   the deeper you go into the filesystem, the less space is left for typing in commands. Can I change this to only show something like:  &gt;   I mean, I can just type pwd to show where I am at. ;)
95118
The windows command line prompt display the full path of the currently directory, which will be too long when I am deep into a directory, like:  V:\Runtimes\ProjectName\src\ToolsTest\JavaCrashExample\JavaCrash\main\ToolsTest\JavaCrashExample\JavaCrash&gt;   Is their any way to customized this, so that I can just display the current directory's name?  Thanks.
115800
In Ubuntu 10.04 Terminal when I traverse into some long directory structure the entire path gets displayed, this leads to lot of space wastage on my terminal, where the cursor comes way over to the right. It's causing lot of Irritation. Any way to just display the base dir.   Currently -  ops@ops:/media/Main320/final_code/code/office/c/practice/parsers/proj1$   Need - ops@ops:~/proj1$  I am sure it's some config change or some profile preferences change. Any one...
24193
I tend to use the terminal a lot,  So I wondering if there is a way I can make Ctrl+Alt+T focus the existing terminal if there is one, otherwise create a new terminal?
22482
In  the top answer shows how to copy text that has been previously selected with the mouse on a gnome-terminal, to the clipboard in X11.  My question is: Say I copy a piece of text from the terminal using bash set-mark and copy keyboard shortcuts (i.e. set-mark + M-w). Is it possible to share this clipboard with X11?   EDIT: In the original question, I talked about sharing the clipboard with GNOME, but as Gilles points out below, GNOME doesn't specifically have a clipboard (it's general to X), so I have updated the question.
119503
I want to create this folder: $HOME/a/b/c/d while $HOME/a has not yet been created! Is it possible with one line in Terminal?
35102
When I work in terminal, sometimes I want to open the current directory in a GUI file manager. And then to click the items in the window to run the application. How can I do this?
65521
Is it possible in an interactive bash shell to enter a command that outputs some text so that it appears at the next command prompt, as if the user had typed in that text at that prompt ?  I want to be able to source a script that will generate a command-line and output it so that it appears when the prompt returns after the script ends so that the user can optionally edit it before pressing enter to execute it.  This can be achieved with xdotool but that only works when the terminal is in an X window and only if it's installed.   [me@mybox] 100 $ xdotool type "ls -l" [me@mybox] 101 $ ls -l  &lt;--- cursor appears here!   Can this be done using bash only?
119512
I used to use Alt+number to switch between gnome-terminal tabs. In my recent 19.10 installation, this does not work. When I press Alt+1, instead of switching tab, the command line shows this: (arg: 1)   and if I press Alt+2, it becomes: (arg: 12)   I checked the options in gnome-terminal, it is set to use Alt+number to switch between tabs. I would like to know which application is hijacking the hotkey, and how to fix it. PS. I do NOT want to use Ctrl+PgUp/PgDn for this. Thanks.
97176
I have been looking for an answer to this and not finding anything which makes me think it's not possible but ...  Is it possible to save the current Gnome Terminal scrollback buffer to a file?  I know that I can do something like command &gt; output.txt to redirect all output to a file, or command | tee output.txt to split the output to the terminal as well as to a file. What I am trying to do is capture this after the fact. I'd like to save the current terminal tab's scrollback contents to a file.
81133
I am new to Ubuntu.  Whenever I open a terminal my current working directory /home/Varun (as found by typing pwd).  Is there any way I can make the terminal's path to be set as /home/Varun/Desktop/Java Files when it opens?
23627
Is it possible for me to make Ctrl+C perform a copy command if there is highlighted text in the terminal? Otherwise, it should retain its normal behavior.  (If there is a terminal that can do this other than gnome-terminal, that's probably fine too.)
60179
I've seen  about launching gnome-terminal with multiple tabs and the script below is working for me.  That is to say, this script will launch gnome-terminal with various working directories or profiles. . .  #!/bin/sh gnome-terminal \ --tab --working-directory=$HOME/notes  \ --tab --working-directory=$HOME/puppet \ --tab --profile=root-beamish           \ --tab --profile=odyssey                \ --tab --profile=root   ... but I'd like to set a unique title for each tab.  In the case where a tab has its own profile I can change the title from within gnome-terminal with Edit | Profiles | (NAME) | Edit | Title and Command and then change "Initial Title" to what I want and "When terminal commands set their own titles" from "Replace initial title" to "Keep initial title".  However, I'd rather not create a unique profile for every tab.  I'd like a generic solution.  I've tried adding --title='MyTitle' but it doesn't seem to help.  I'm using GNOME 2.28.2 on CentOS 6.
100828
For use in a shell-script, I'm looking for a commandline-way to get the destination of a symbolic link. The closest I've come so far is stat -N src, which outputs src -&gt; dst. Of course I could parse the output and get dst, but I wonder if there is some direct way of getting the destination.
108921
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!
103350
What command(s) can I use in the terminal that's equivalent to the PrtSc (Print Screen) button?  I am running Ubuntu GNOME.