General :: The Terminal Displays Bash-2.3-$ Instead Of Username@computename?
May 11, 2011My terminal is showing bash-2.3-$ instead of Username@computename.
View 5 RepliesMy terminal is showing bash-2.3-$ instead of Username@computename.
View 5 RepliesIs it possible to run a java command as soon as the terminal opens and after it displays you have the normal terminal prompt. I have an ascii header i made its a java file and i want it to display every time i open the terminal so it shows as a header.
View 1 Replies View RelatedI am new in Linux,i build nano editor on Linux,it compile successfully but when i open in terminal then error displays "Error opening terminal : Xterm" while nano help is running successfully.
View 14 Replies View RelatedI'm playing around with my prompt, and for some reason under certain conditions part of the prompt is output twice.
- When my terminal window isn't maximized it always outputs the prompt correctly.
- When the window is maximized it outputs the prompt correctly when I enter an empty command (ie, when I just hit enter).
- When it is maximized and I enter any command, it outputs the second line of my prompt twice.
I'm using urxvt.. I tested in xterm and it seems to work correctly, so I guess it's an issue with urxvt. My prompt code:
Code:
#!/bin/bash
function redblue {
local BLUE="[33[0;34m]"
local RED="[33[0;31m]"
local LIGHT_RED="[33[1;31m]"
[code]....
I need to show which Display is online on X if i have 2 Graphic Cards ,how to find out which is display 0.0 or 0.1 ex.
View 2 Replies View RelatedIm used to using nautilus within centos but have recently just got a VPS and quickly realising that using a KDE is unacceptable in this environment. Although I do find it so much quicker doing things like folder permissions in KDE rather than typing it all out in the terminal? Everyone I speak to says, use the terminal and I should learn this way as opposed to using the KDE, but theres certain things I just dont get
How is it possible to make quick changes to scripts and viewing them in a browser etc , without a mouse or using KDE? and only using a terminal?? I am wondering how to develop websites just using the terminal?
How can it be quicker to type out/view permissions etc in the terminal when its instant and just a few clicks in the KDE?
How can I change the username via terminal?Also, via GUI is there any to change the username?
View 1 Replies View RelatedI want to be able to time how long I spend in front of a terminal. I'm thinking the best way will be to have some sort of timer that starts and stops when the terminal gains/loses focus. And it will have to work with multiple terminals...
I'm using GNOME.
I open up 2 xterms on my desktop, A(/dev/pts/0) and B(/dev/pts/1).I can write from A to B using redirection e.g. echo "test" > /dev/pts/1How do I run a command from A on B? e.g. "clear"Basically I'm putting the 2 terminals side by side, and using terminal B to display the contents of the current working directory, by running the following in A:export PROMPT_COMMAND="ls -a > /dev/pts/1"but this fills up the screen pretty fast. I was actually looking for a way to clear up the second terminal.
View 6 Replies View RelatedI mainly use debian jessie , recently i have installed daragora as my second os to get a feel of gnu/linux . the problem is that dragora uses bash , and it's commands are different from debian jessie terminal is there a way that i can use the same commands here in dragora?
View 4 Replies View RelatedLinux-goers. I did some research on this, but I am still fairly new to Linux. In Ubuntu 10.10 (Maverick), I accidentally overwrote my "/bin/bash" file. Dude, using "sudo" with a small typo can work disasters. Bash is now broken in the Terminal (gnome-terminal). Terminal itself still works fine, technically, but bash is still hosed/broken. Here is what I did to try to fix it: Booted from Ubuntu 10.10 live CD. Mounted my Ubuntu partition and manually copied the good/fresh "bash" file onto my hard drive. Verified copy was successful. Didn't help, as you see. Reinstalled "gnome-terminal" using synaptic package manager. Tried to reinstall bash via synaptic, it failed with error, "E: /var/cache/apt/archives/bash_4.1-2ubuntu4_i386.deb: subprocess new pre-removal script returned error exit status 2"
In Terminal, all basic commands work as far as I can tell. ("ls", "pwd", navigation, etc.) Here are some problems:My "username@computername" does not display in the prompt; only the $ sign. Bash keyboard shortcuts such as uparrow and tab do not work. Instead, each inserts a key code. I can't even move the cursor left/right. Aliases (a function of bash and .bashrc) are broken, of course. My sanity level decreases when I use Terminal now. For what it's worth, even with "sudo" I get a "permission denied" error when trying to run Google Chrome! I read something about a ".bashrc" file being a possible problem, but I don't know how to make it work, or the file's proper locations in Ubuntu 10.10. Is there something I can do with a "make" or "apt-get install" command or something?? Could this simply be a permissions problem? Is the link to "/bin/bash", "/bin/sh", or a ".bashrc" file broken? Guide me, oh Linux gurus.
P.S. I always wondered what exactly bash was and how it was different from the basic terminal. LoL, this is an excellent way to demonstrate the difference, and I WANT IT BACK!
I got a problem with terminal, since i'm really a noob with terminal i don't know how to fix it.Everytime i type in a command it shows for example:
-bash: ls: command not found
Even the basic commands don't work... just cd <directory> and those things works
Is there a way to get colored output when using tab completion in a terminal? My colors are fine everywhere else so I know that I've enabled a color terminal successfully. Using bash in Ubuntu (10.10).
View 1 Replies View RelatedIs there a way to catch or stop a Linux shut down after a reboot, halt or shutdown command has been entered?sudo shutdown -r +10 I should now have 10 minutes before the computer shuts down. If I change my mind and decide that I still want to continue running, how could I stop the shut down?
View 1 Replies View RelatedI'm really running into a wall trying to figure this out. I have a Bash script and narrowed down the one command that doesn't seem to work via cron and it's my pgp decrypting line. Works fine if I run the command via terminal but if I run it via cron it doesn't output anything.crontab -e shows the cronjob and it runs, creates the log file with no output. Is there maybe something I need to run as well? Permissions look set, unless the cron is running as a different user(was under the assumption if it showed up under crontab while logged into that user, then it would run as that user.
View 14 Replies View RelatedThis code:
Code:
#! /bin/bash
echo Okay.
echo
Does not do it....
P.S. I want to show my parents what happens when I do:
Code:
sudo make me a sandwich
and have it say "Okay."
When I login, all I get is a terminal in the upper left-hand corner of the screen with the wallpaper in the background.
I uninstalled what I thought were random orphaned packages relating to evolution (evolution-data-common, etc..) Turns out that this uninstalls gnome-panel as well, although it didn't warn me. Reinstall gnome-panel and it will reinstall the required packages (you can still run synaptic from terminal!)
I know how to redirect the output of a terminal to a file. For example, if I want to list all the files in ~/Documents and output to a file called test.txt, I would do this: ls ~/Documents > test.txt The question is, can I copy the output to test.txt AFTER I have carried out the command? This would mean that I wouldn't have to know in advance whether I want to copy the output to file. I want to do something like this: ls ~/Documents Then this: <bash command for copying standard output to test.txt>
View 2 Replies View RelatedHow to select text in BASH terminal using the keyboard without mouse? I'm using Ubuntu 10.10
View 1 Replies View RelatedI want to be able to synchronise files between 2 remote computers in both directions. Say for example that I want to synchronize my /home/Documents directory with <username>@example.com:/home/Documents What's the easiest way to update the folders in both directions, so that new/updated files on my home computer get transferred to the remote computer, and new/updated files on the remote computer get transferred to my home computer?
View 2 Replies View Relatedi want to delete some say 10 previous commands in bash shell!
View 3 Replies View Relatedi am using putty to connect to the linux server and i am using nano as my text editor to write a bash script.
this is my script:
echo "Please enter your Username"
read userName
userName= grep $USER /etc/passwd | cut -d: -f5
echo "Welcome " $userName | cat >> output.txt
the problem i have is that when i enter my username, the output (my real name) does not display in the output.txt. instead it displays in putty. so when i run my script in putty it shows the message to enter username and after i enter my username my real name appears below it. i want it to show in the output.txt
$ execute_some_long_command <command is executing> <Accidently press middle button that inserts bunch of garbage (including, for example, `rm -Rf ~/*`) into console>
How to let execute_some_long_command finish, but not execute inserted things?
I am working on different versions of Ubuntu & I looking for a script that will prompt the user to enter the host name & user name that he wanted for that system at initial boot up.
View 2 Replies View Relatedhow i can use the cal command so it displays the current month and the next month, i know you can use cal -3 9 2007 to show the previous current and next but i just want to display the current and next.
View 9 Replies View RelatedI am trying to write a bash script that would save the current state of my konsole terminals and sessions. I'm using KDE3.X and for some reason the "profile" save does not save the current working directories... Anyway, I would like to know if there is an elegant way to obtain the current workdir of each terminal and session ? I've managed to do something with a clever use of DCOP extended functions, but it requires me to start every konsole with the --script option enabled, and I don't want to do that.
View 9 Replies View RelatedI'm having a hard time installing Ubuntu 10.10 (32bits). I load the CD and everything's ok throughout the installing procedure, but when the installation is over and it says it's gonna reboot it doesn't do it!
The screen resembles a terminal with a message like "the computer is going to reboot NOW!" but it could stay like that for hours. The keyboard is locked so I can't reboot by commands, and if I press CTRL+ALT+DEL it just reprints the same message. Therefore I'm forced to turn off my computer manually.
After that, the Ubuntu desktop doesn't load. The screen shows a terminal asking for my username and password to access the computer. No graphics at all.
I've noticed something, and hoped there was a work around.when I write a simple bash script, and run it, if I close the terminal i ran the bash script inside, the bash script stops. What are the solutions for this? Basically I want to run my bash script and close the terminal, keep the bash script running.
View 6 Replies View RelatedI have a startup script for jboss (start.sh) that sets some JAVA_OPTS and then calls bash run.sh.If I run it (start.sh) from the command line it runs in the terminal fine. If I make a shortcut launcher for it in gnome and set it for 'application in terminal' it pops up then immediately dies after launch.Not sure what the problem is. Is this not working because one script is calling a second script? But then why does it work when I call ./start.sh?
View 4 Replies View RelatedI'm running on a freshly installed win7 (first) ubuntu dualboot system. Splash screen was absolutely perfectly dandy upon fresh install.I updated ubuntu, then the problem occurred. I assume its a video card problem. nVidia GeForce 9800 GTX+ is what have in there.Drivers installed fine and everything, don't know if this is an easy fix or not.What's weird is that the animated dots remain, just in a lower resolution.
4gb RAM
intel i7 860
evga P55 SLI mobo
Didn't mess around much with ubuntu before the problem occurred. I essentially let the updates run and then I restarted right back into Ubuntu and saw the new downgraded splash screen.I'm new to ubuntu and terminal commands so if you suggest a terminal command fix, please be logical in your step by step fix suggestion.