Ubuntu :: Print Current Working Directory In Title Of Xterm?
Jan 29, 2011In any case what I'm asking it how can I set PWD into my xTerm title bar. I do NOT want pwd at my command prompt because it would make it too long.
View 2 RepliesIn any case what I'm asking it how can I set PWD into my xTerm title bar. I do NOT want pwd at my command prompt because it would make it too long.
View 2 RepliesSo when I upgraded to Slack64 13.1 on my asus MB homebrewed desktop and Slack 13.1 on my compaq presario a900 laptop, I started having issues with the xterm title (in Terminal--not Konsole) being too dynamic. By "too dynamic" I mean that I can't actually change the title. The dynamic title (from my .bashrc) is basically just pwd. Whenever I try to set the title (via terminal->set title (menu)), I changes it for a split second, and then reverts back to the dynamic title.
This is merely a petty annoyance, so to get around it, I added an xtitle function that I grabed somewhere online (just echos "�33]0;$*�07"). So for nano-ing some file, I'd type:xtitle some_file.txt; nano some_file.txt
That works just fine (kind of annoying to type though). running xtitle alone won't actually change the name either though (I'm pretty sure it's the same command as what terminal does anyway). That is, running: xtitle some_file.txt
changes the title for a split second, and the reverts back to my old pwd.What I really want is to have it dynamically name it "some_file.txt" whenever I use nano, but that appears to be a functionality of zsh (with the preexec() fxn).I'm wondering if anyone else has had this problem, and if you have a fix for it.
The usual operations in starting the xterm app don't seem to apply in Fedora 12. I usually prefer to put my own title and other attributes when starting an xterm. But the operation: xterm -T 'Some Title' does not do anything. Instead, the current directory is always displayed in the title bar of the window (on kde). Where is the resource file to disable this default behavior?
View 6 Replies View RelatedI usually have several xterms open, with each one running a different gnu screen session. It would be useful if--at a glance--I could see the session name in the xterm title bar. That way I would be able to quickly tell which screen sessions are running in which xterms. This would be very useful when alt-tabbing.
I know that there are termcap, terminfo, and termcapinfo commands available, but I don't know how to use these. I also know that there's an $STY environment variable that stores the session name. Also, I do not want to lose my current "hardstatus alwayslastline" bar. It seems like this should be independent from the xterm title, anyways.
this is gonna be changed to another thread
View 1 Replies View Relatedhow can i actually switch to another directory with "chdir" in perl.like the we used to do is bash as:
Code:
$cat abc
cd Desktop/
[code]...
I would like to keep track of not only what bash commands I used and when, but also where they were issued from, i.e. what was the current working directory when I issued "foobar" on a particular day and time. Can we ask bash history to keep track of working directories too? I have tried to get an idea of this reading the enormous "man bash", but I don't seem to have an answer yet either way.
View 11 Replies View RelatedI'm using Ubuntu 9.10 on a home network (without internet access)Occasionally I need to restart the print server. Code: xterm -e 'sudo /etc/init.d/samba restart' each time it asks for the password but because this is a closed network, I'd like to dispense with it asking for the user password each time
View 3 Replies View RelatedI was wondering how the current working directory is maintained in linux. I assumed it would simply be an environment variable, but all attempts i've made to change directory by resetting variables shown by env have failed.Is this something that is maintained internally in the command prompt (bash in my case)?The background to this is I'm setting up a script to remotely run commands over ssh. Since separate commands will unfortunately require separate SSH connections, I need to maintain (save and reload) items such as environment variables and current working directory from one call of the script to the next.
View 4 Replies View RelatedI am in my current directory. I want to copy a directory somewhere else into this current directory. Lets say I want to take it from direc1/direc2 and the directory I want to take is called demo.
Code:
That is what it shows in the man pages, but when I do that, it says cp: no match
Using current 32 bit I'm unable to print anything outside of KDE. If I print something from Konqueror or Koffice for instance, my printer shows up in the dialog and everything prints fine. However if I use openoffice or abiword, etc then my only option is to "print to file" It is a samba shared printer that is attached to a 13.1 server, but I don't know that that makes a difference.
View 2 Replies View RelatedI am using xterm and sometimes when typing long commands into a small window, the command extends beyond the end of the line. On my old uni setup, when this happens, the cursor moves to the line below and you can see what text you have typed above however on my slack 13 setup, it overwrites the current line so you cannot see what you have typed! How can I set xterm to move onto the next line instead of overtyping?
View 14 Replies View RelatedI'm hoping this is the right category. Is there a terminal command to display what network you're currently connected to?
Example:
My home network's name is (in this example) "home".When connected to it, I want a command that, when run, would give me the output 'home'. Does such a command exist?
im searching a kde programm to show current print jobs. I've installed aptosid (actual version).I've searched the repository and I only found printer-applet which does not run in aptosid - I got the following error messages:
Code:
Traceback (most recent call last):
File "/usr/bin/printer-applet", line 1161, in <module>
[code]...
How can I print the current time of my system with a batch file. My os is ubuntu.
View 4 Replies View Relatedafter upgrading from Karmic Koala 9.10 to Lucid Lynx 10.04, i notice something different with title bar on every window opened.
for example:
"Google - Mozilla Firefox" is not at the middle of the window title. and on Lynx it's on the left.
After upgrade to ghostscript 9.02 from current all print jobs fail with: 'There is a missing print filter for printer HP_F2480'
The printer is an All-inone deskjet F2480 and the cups printer queue has been
setup with the hplip tools. Before the upgrade it was 'working' with quite a few bugs...eg image not printed correct, multipage printing garbage. (page for page printing was the workaround)
Do I need to remove the printer and define it again?
Start xpdf or gv. Click an xterm to be active and slide it over xpdf/gv. Vertical lines from xpdf/gv under the xterm stick to the xterm window above and make it unreadable.
The problem does NOT show with KDE default settings with display effects on but does show in fvwm, xfce etc, and in KDE without effects.
On a system with a Sandy Bridge integrated graphics (i5-2400) the problem went away by downgrading to xf86-video-intel-2.13.0. But it was not enough for another system with 945G which needed downgrading to xf86-video-intel-2.12.0.
Something weird sometimes happens on my Debian system. Typically at the prompt line I can use combo like alt-d to delete a word, alt-f to go to the next word, etc. But quite regularly something happens in my xterm that makes alt-d and alt-f not work anymore: suddenly they print 'ä' (alt-d) and 'æ' (alt-f).
Note that this happens in a terminal that was acting like I wanted to at first. But then somehow must send a code or something that changes the behavior of the terminal. It happens in xterm because that's where I always work. If I go to a console by doing ctrl+alt+f1 then by default alt-d does what I want (delete word) and so does alt-f. Maybe that I could screw that one too by doing some bad manipulation: I just don't know because I don't work in text mode.
Also note that if I spawn an xterm from the "broken" xterm, then the new xterm work as I expect. What is going on? What am I turning on that was off previously? My .Xresources says that and, once again, when I open an xterm it behaves as I expect it, it's only later on that "something" makes that it goes back to broken "I-print-characters-with-diacritics-and-other-nonsense" mode:
$ more .Xresources
XTerm.vt100.eightBitInput: false
XTerm*eightBitInput: False
i have fluxbox and i need to know how to copy things in xterm and paste them outside of xterm.
View 2 Replies View RelatedJust had a weird problem in konsole at the command line. Some of my keys are not recognized as if they are not being pushed. They work fine in other applications and work fine if I push the Shift key with it and capitalize the letter. Some of the keys are the c, g, r, w, 3, 8,and 9. C, G, R, W, #, *, and ( all work so I do not believe it is hardware as I am using this computer to type this message. It is just at the command line. I don't know what I did to make this happen or how to fix it. I am using openSUSE 11.3 with the KDE 4.4.4 release 3. I tried reinstalling xterm and konsole from yast but it did not fix it.
View 8 Replies View RelatedToday upon booting my Xubuntu 9.04, I see that all new windows I open have their title bar missing and on top of my pannel menu. If I try to run windows manager from the menu, nothing shows up on the screen. Therefore I think my windows manager is not running at all. I have no graphic effects and dont want any. I noticed that nothing shows up on the task bar (bottom bar) when I have anything opened up in the desktop. Can't minimize, can't click close button, ...How do I fix this ? I followed a thread to install Compiz and emerald just so I could get it to work but I do not like this option. I do not want any special effects. The more effects/options I have the more possible problems I may get. By the way I also have this problem on my office Ubuntu 10.04. Both started having this problem recently. I suspect it is an update that was done that is causing this.
View 2 Replies View RelatedEverything worked 100% great untill I change color depth to 16 bits.I do not want 24 Bits, I want 16 Bits. I have good reasons. Never had this problem in Gutsy 7.10 ...I deeply regret in upgrading to 9.10 ...
My video card:
Gforce 7950 GX2
Changes to xorg.conf file: Firstly, I saved it at 16 color depth with the sudo nvidia-settings and by clicking on the save to xorg.conf file Button. Rebooted computer....... It worked, saved file, and I got the following bugs:
*Cannot move windows by dragging their title bars.
*Cannot see close "X" Button in the title bar.
*Cannot see Minimize Button in the title bar.
*Cannot see Maximize Button in the title bar.
Went back to 24 bits and problem got resolved. Then i tryed: I did sudo gedit xorg.conf I changed all the 24's with 16's ... Rebooted computer....... It works GOOD... BUT: I got the same bugs from before. I will retype them below
*Cannot move windows by dragging their title bars.
*Cannot see close "X" Button in the title bar.
*Cannot see Minimize Button in the title bar.
*Cannot see Maximize Button in the title bar.
My xorg.conf file:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildd@palmer) Sun Feb 1 20:21:04 UTC 2009
Section "ServerLayout"
[code]....
I have a simple shell script name "run.sh".
Code:
export PYTHONHOME="lib/"
python dispatch.py
[code]....
when we navigate into directories withing directories the terminal displays the entire path right from the root. Now how to make it just show the current directory I am working in? For examplevineeth@vineeth-laptop:~/Desktop/linux_programming/python_programming/project_duplicate_zip_files$ as you can see that I am in the current project_duplicate_zip_files directory but it displays right from the root. how to just make it something like below:vineeth@vineeth-laptop:/project_duplicate_zip_files$
View 2 Replies View RelatedSo for example, I go to PLACES -> DOWNLOADS and somehow open up a terminal for that rather than opening up a terminal to type "cd ~/Downloads" I know its simple to do that but when your dealing with some crazy directory like:
/media/2TB-DATA/BackUps/Regular/Downloads/Pictures/Family/Me/HiDef/ or something, and ur already browsing through it using the file browser, it would be nice to be able to open up a terminal for that directory.
Like the title says, I want to be able to open the directory I'm browsing in nautilus.To clarify this, as I barely understand what I said, I'll give an example.
Code:
cd ~/what/ever/this/is/complex/path
Hmmm.... A lot of files in here with long complex names and I only want to move certain ones..... Better open it in nautilus with my handy dandy script/alias!
what I'd like to have is a way to open a terminal directly from Nautilus and the terminal's active directory should be the one that is opened in Nautilus. Does Nautilus have a plugin system or is there another way to add this functionality?
View 3 Replies View RelatedIf I runls -R1I get a recursive listing of all files under the current directory.However, if I dols -R1 *.avi, ie I want to search only for files with the file descriptor .avi, I get an errorQuote:ls: cannot access *.avi:No such file or directorySo it seems I am using ls incorrectly. What's the correct way to use wild card pattern matching when using the -R switch? Or maybe that isn't possible?
View 2 Replies View RelatedIs there an easy way to put all of the current directory's files on the command line, without tab-completing each individual one?
View 9 Replies View Related