0
votes
1answer
22 views

Dpkg: After comparing config files, how do I revert back to make my choice?

I'm part way through a fairly large apt-get upgrade which had 65 packages to be updated. I've gotten to a config file "merge conflict" where both my local config (containing a licence key) and the ...
0
votes
0answers
9 views

different color for terminal's username prompt [duplicate]

[root@sv2-12 linux]# git status In the above line can I set [root@sv2-12 linux]# in different color, this will help in looking at the terminal bit easier way. I am using gnome-terminal in linux. ...
0
votes
2answers
94 views

Strange characters from output in shell

Over the past few years there have been some Linux systems that will output strange characters when running various commands. Here's an example of my output from the sensors command on one of those ...
5
votes
2answers
235 views

Confusion over terminology SSH, Shell, Terminal, Command Prompt and Telnet

I don't usually use SSH if I can get away with it, but if I have to I do of course, and I've seemingly done this for years while still managing to remain slightly confused about these different terms ...
0
votes
2answers
410 views

Linux Terminal: Change cursor position after 'up arrow' key press

I just switched one of my systems from Gentoo to Ubuntu. There is one difference between the two setups that is driving me mad, and I cannot figure out how to fix it. When I use the 'up arrow' to go ...
2
votes
3answers
2k views

mysql not to print selects output to terminal

Quick question: I have created come commands that will warm-up my DB. The thing is that those selects are large. When I do such a select I get all the "jiba-jaba" into my terminal window. How can you ...
10
votes
5answers
1k views

How to remove many (200 000) files?

I must remove 200 000 files (all of them) from a folder, and I don't want to delete the folder itself. using rm, I get an "Argument list too long" error. I've tried to do something with xargs, but ...
3
votes
1answer
88 views

customizing terminal ssh shell [closed]

The other day I saw someone connected to an ssh shell with status bars on the bottom (Mac OS X Terminal) of the terminal. It has things such as upload rate, memory usage, time, current username, and ...
1
vote
3answers
525 views

Server Bash Line Wrapping Over Text & In Wrong Place

This is quite a hard problem to explain, when connecting to one of my servers using the bash shell, under any user the line wrapping is broken and has all sorts of problems. Once of which I detail in ...
0
votes
5answers
1k views

Which characters if cat'd will mess up my terminal and make a ton of noise?

I've written a wrapper script that I alias to cat, called safecat, that protects me from accidentally catting binaries and getting a ton of screeching from my PC speaker. Right now it considers a file ...
2
votes
2answers
239 views

prevent process from terminating when closing termial

i am working on a Linux box (via ssh), which is currently completing a very time-consuming task. How can I go to sleep (close my local terminal windows) without interrupting the execution of that ...
1
vote
1answer
1k views

OS X Terminal lines don't go into scrollback

I have a problem that crops up when using Mac OS X's Terminal (TERM=xterm): sometimes it gets itself into a state where lines that scroll off the top are not added to the scrollback buffer. I'm not ...
1
vote
2answers
106 views

How to display shell content also in other independent terminal window?

One user is working on ssh shell. Root wants to monitor user's actions on root's terminal window. I was thinking about connecting to screen twice. Input and output is required. *cat .bash_history* is ...
2
votes
5answers
999 views

Shell command to remove files extension

I have a directory with automatically generated files that all end with the .sample extension. I would like to have a way to remove the .sample extension from them all in one terminal command. I ...
4
votes
3answers
322 views

What do you do when a command floods your terminal with too much output?

I'm trying to solve a common annoyance: when SSH'd into remote servers I often do things that produce a lot more output than I'm expecting. For example, grepping a large log file with a pattern that ...
5
votes
4answers
2k views

How can one set a terminal's title with the 'tput' command?

I discovered through this answer that I've been setting terminal colours in my prompt in a naive way for years. I've now modified my .bashrc to use 'tput' commands to colourise various elements of my ...