A terminal is an environment for text input/output. Inside the terminal, one runs command-line and text mode programs (including shells).
7
votes
2answers
398 views
How to change the contents of a line on the terminal as opposed to writing a new one?
So, when wget gets a web page, it shows you a status bar that indicated how much the file(s) is/are downloaded. It looks like this:
25%[=============>______________________________________] ...
10
votes
3answers
2k views
Telnet send Ctrl-C
I use telnet to connect to a terminal server, which proxies the traffic to a RS-232 port.
Unfortunately when using some of the devices it is not possible to send the ctrl-C character (0x03). Instead ...
5
votes
2answers
387 views
How can I disable terminal resizing
Vim scripts sometimes resize the whole shell (in my case the Taglist plugin).
I don't want this behavior, which is possible with the shell command resize, too.
Is there a way to suppress the whole ...
2
votes
1answer
188 views
How do I get rid of the small nub in the bottom right corner of my terminal?
I'm setting up XMonad within Linux Mint, and I've been able to remove the menubar and the scrollbar from my terminal windows, but I can't get rid of the small resizing nub in the bottom right corner. ...
-1
votes
3answers
200 views
Duplicate bash prompts
I'm having an interesting issue with XFCE Terminal/Gnome Terminal (not reproducible in XTerm), where executing bash or logging in using login or su will open a new Bash instance inside a Bash instance ...
3
votes
3answers
166 views
Emulate mouse cut'n'paste behavior in a test script
I've got a shell script which outputs shell commands which are supposed to be copy-pasted with the mouse from one terminal window to another (I can test it in the same window though). The output ...
4
votes
2answers
197 views
What is the terminal's graphic API?
How can certain programs set background and font colors, write characters to the same location on screen (e.g. to the third row, fifth column) more than once?
Some examples are the progress bar ...
1
vote
2answers
4k views
changing an environment variable like PATH forever [duplicate]
Possible Duplicate:
How do I set a user environment variable? (permanently, not session)
to change the amount of PATH variable , I use : export PATH=...
but when I close the terminal, the ...
5
votes
2answers
562 views
How to tweet using terminal?
I would like to tweet a message using terminal.
I tried something like:
curl -u 'TwitterUsername':'TwitterPassword' -d status=”Your Message Here” https://twitter.com/statuses/update.xml
but seems ...
8
votes
2answers
978 views
How do I leave a message for another (local) user?
I know you can use write to send a message to a currently logged in user, but how do you leave a message for a user who is not logged in? The solution I have seen is modify the motd, but that will be ...
2
votes
2answers
534 views
Pasting binary data into a Unicode terminal
I need to be able to paste binary data into a terminal. For some reason, every byte outside the ASCII range (0x80-0xff) is pasted as the same three byte sequence 0xef 0xbf 0xbd.
For example:
$ echo ...
6
votes
5answers
1k views
How does “top” command show live results?
How can I write a shell script that shows the results in real time?
Something like the top command that updates the results after some fixed intervals of time.
5
votes
1answer
249 views
Is split-screen `cat`ing possible?
I asked the question How to use cat or less depending on the line count? with the intention of browsing many files without having to scroll up too far to view my history after displaying a long file, ...
3
votes
3answers
1k views
Having tmux load by default when a zsh terminal is launched
My current workflow is:
CTRL+SHIFT+T to launch a new terminal window. That starts a new zsh terminal.
Type tmux to start tmux.
How can I have tmux load by default with a new terminal window?
1
vote
4answers
1k views
How to clean up the RAM memory that is being used as cache memory?
My processor is using a big part of my RAM memory as cache and I want to clean it up because of that; will it prejudice something?
5
votes
1answer
215 views
Redirect terminal output to image file
I need to programmatically run some unix commands and get the output in a image file, the format could be png or jpeg (jpg).
The commands are run in an AIX (IBM *nix) machine. I don't have ...
1
vote
0answers
189 views
grub-mkfont input and output formtas
I have a font that I can set using setfont and rc.conf [CONSOLEFONT]. It is in psf2 format. I would like to use the font in Grub as well. I'm using Grub2. When I run
grub-mkfont -o ~/outfont pc.psf
...
3
votes
4answers
212 views
Change working directory of 2 terminals at once
I've typically have gnome-terminal open with ~8 tabs, using 2 consecutive tabs for the same task (one has emacs, the other is used to do git checkins and unittest runs and so).
When changing tasks, I ...
7
votes
1answer
539 views
Kernel Mode Setting vs. Framebuffer?
With KMS, the graphics drivers are moved into the kernel. Since the framebuffer was already in the kernel, I wouldn't expect this to affect framebuffer operation. Yet, I read that KMS supercedes the ...
3
votes
3answers
6k views
What is the best text-mode browser? [closed]
I am looking for one that is updated frequently and has support for many things. Please also state how to install it.
3
votes
2answers
1k views
Scroll inside Screen, or Pause Output
I use screen for my command-line tasks while managing the servers where I work. I usually run small commands (mostly file-system tasks) but sometimes I run more extensive tasks (like DBA).
The output ...
5
votes
1answer
1k views
Ctrl+Alt+F8 meaning
I know that Ctrl+Alt+FX (X=1 to X=7) are 7 different ttys.
Suddenly, I tried to find out what other combinations Ctrl+Alt+FX (X=8 to X=12) leads to.
After pressing the combinations, I found that a ...
1
vote
2answers
220 views
What is the difference between `terminator -e ranger` and ranger from terminal?
EDIT: I just noticed that when I hit Enter on the ranger (if it is executed with terminator -e ranger) then nano opens while with e it uses my main editor. In contrast, when I use a normal shell to ...
3
votes
3answers
436 views
Colorized `cat` for source and script files? [duplicate]
Possible Duplicate:
How can I display syntax highlighting on a file?
Is there any application like cat, but with color output?
I'd like to view my files with colors like in any IDE's ...
2
votes
1answer
232 views
Shell from a Firefox tab
I have a requirement for a user in the office where they would like to open a terminal shell within a Firefox tab.
Is this at all possible?
2
votes
2answers
104 views
Is there an easy way to stop and reissue a command?
I am doing Node.js development in Ubuntu and I'm curious if there is a way to quickly stop and restart a node server.
I run this command to start my app:
$ node app.js
When I make changes to ...
5
votes
2answers
1k views
Execute command in remote active terminal
Suppose you have a terminal emulator (T1) open with a PID of 6350.
From another terminal, type this command (C1):
echo "ls\n" > /proc/6350/fd/0
This writes ls and the new line in T1 but does ...
0
votes
1answer
180 views
Run a script after some command were executed
I have a list of scripts
./myscript <param> | grep "asd"
./myotherscript <param> <param> > file
...
How can I automaticaly run another script when one of these command in the ...
2
votes
2answers
1k views
How to change the colour of embedded terminal in linux mint 12 to be able to use `ls` and `byobu`?
I'm using Linux Mint 12 and am having problems with the embedded terminal in gedit.
Using the default themes I'm unable to use 'ls' and 'byobu' as in part of their output foreground and background ...
6
votes
3answers
2k views
How can I open a new terminal in the same directory of the last used one from a window manager keybind?
I'm using a tiling window manager and I switched from gnome-terminal with multiple tabs to multiple urxvt instances managed by the window manager. One of the features I miss is the ability to open a ...
8
votes
2answers
306 views
Dynamically reformatting man pages on terminal dimension changes
One common workflow of mine is to open a manual page in a terminal, then another terminal in which to test things. The man page is formatted to the initial dimensions of the first terminal. When I now ...
1
vote
1answer
701 views
How to save a session in Yakuake
I use the Yakuake drop-down terminal and would love if it could save my session of tabs somehow. When I have 6-7 tabs open, all named and everything, it is a giant pita having to re-create that on ...
6
votes
4answers
2k views
Parallel execution of a program on multiple files
I have a small script that loops through all files of a folder and executes a (usually long lasting) command. Basically it's
for file in ./folder/*;
do
./bin/myProgram $file > ./done/$file
...
2
votes
3answers
471 views
open whole folder in gedit
Moving from OS X & Textmate to Ubuntu & gedit, the one feature of Textmate I am missing is it's command line tool.
With mate I was able to open a folder as a Textmate project using mate . ...
-6
votes
1answer
131 views
Linux kernel compiling commands [closed]
I'm trying to make a mini operating system (using the linux kernel). I'm planning on it being for x86 and I'm trying to make it so that it not only runs on qemu but also on a real device. What are the ...
5
votes
2answers
659 views
Aliases and tmux
Aliases defined in .bash_aliases and .bashrc don't work in tmux.
Can this be changed in some configuration, so the aliases work under tmux?
1
vote
1answer
176 views
How to active tabs on windows by terminal? wmctrl doesn't have option available
I'd like improve a script of mine that uses firefox to perform tasks. I need activate a window and a tab with a specific name. For example, the window name could be Mozilla Firefox and the tab ...
1
vote
0answers
52 views
Color terminal under USS
I've been using a remote terminal connected to USS under a mainframe for some time. Is there a way to configure this terminal to be colored?
I'm using PuTTY and xterm.
Added: USS stands for UNIX ...
7
votes
2answers
228 views
Why doesn't `echo abc^H` just print `ab`?
As I recall, ^H means Backspace. I generated it by pressing CTRL+V, CTRL+H.
So the ^H should remove the last character, as it is the same as Backspace and it should act just as if I pressed Backspace ...
0
votes
0answers
135 views
Any way to recover list of open terminal tabs/windows before my system went down unexpectedly?
I had been working with maybe 6 tabs open in various directories, when I left for a small vacation. Upon returning, I discover a power outage must have rebooted my machine. Is there any way for me to ...
2
votes
1answer
262 views
How to run mutt via ssh without going through an interactive shell
Mutt depends on curses according to this here, my discussion with Michael:
@hhh: ssh hhh@server.com mutt <--- what is wrong here? trying to run mutt there...
@MichaelMrozek: mutt uses curses, ...
2
votes
0answers
217 views
Terminal logging via putty on AIX (including smitty)
I use a terminal logging method on my Ubuntu Desktop for the GNOME-terminal (it's
good when I use SSH in GNOME-terminal):
Implementation
As root:
apt-get install bsdutils
As the normal user:
...
1
vote
1answer
235 views
How does “Remote tab title format” in Konsole work?
Some terminal programs, in particular Konsole supports "Remote title format" which allows you to specify title for remote tabs which includes placeholders like remote host. How does this work? Where ...
9
votes
3answers
740 views
Is it safe to close shell just by clicking “X” or using “ctrl+d”?
Is it safe to close shell just by clicking "X" or using "ctrl+d" while logged in as root with su or is it safer to close it by typing "exit"? Is there any difference (security-wise) at all or is it ...
3
votes
3answers
76 views
console space eaten up by file contents
see the example below to understand my problem ; consider my console prompt look like this
user@server $ ls
"I opened a file temp"
user@server $ vi temp
"temp will open in the same window, when I ...
1
vote
1answer
391 views
What does @ sign mean in 'ls' output on Mac OSX Lion terminal? [duplicate]
Possible Duplicate:
what does the @ mean in ls -l?
What does the @ sign mean in the following "ls" output?
-rw-r--r--@ 1 root wheel 489 Jan 4 13:14 boot.plist
1
vote
1answer
383 views
Running shell commands in .sh file results to error
I have two following linux shell commands:
echo 'CPU type and model'
cat /proc/cpuinfo | head -5 | tail -1
When i run these commands directly in Terminal, i get this result truly:
CPU type and ...
2
votes
1answer
247 views
Can I configure XFCE terminal the way to open all the new terminals as tabs of one window?
I strongly prefer to have one terminal window with all the terminals being tabs in it, but the most usual way I open a terminal is calling it from another application (usually with "Open Terminal ...
0
votes
2answers
364 views
Errors when loading terminal
Every time I run a new terminal window (before I do a single thing), I am greeted with these messages:
env: bash: No such file or directory
env: bash: No such file or directory
env: bash: No such ...
4
votes
3answers
420 views
How can you mirror the stdout of one terminal to another one?
I'm not sure if I'm phrasing the question correctly, but let's say that I have two virtual terminals open, and if I typed ls in one of them, I'd get the contents of the directory in both of them (the ...
