A terminal is an environment for text input/output. Inside the terminal, one runs command-line and text mode programs (including shells).

learn more… | top users | synonyms

3
votes
1answer
68 views

Crontab suspicious activity

I tried using crontab -l from my terminal as root, it showed no crontab for root. So I tried crontab -e, it returns the following no crontab for root - using an empty one 888 and then the ...
2
votes
2answers
56 views

What is bitwise.c~? [duplicate]

I am new to Linux Debian and I am trying to made a program to experiment bitwise operators. The name of the program is bitwise.c Before compiling the program, I decided to look at the directory just ...
1
vote
2answers
38 views

grep a keyword from Mplayer output and send the rest to file

I am using mplayer. I want to send everything to a log file (/tmp/server.log), but I want the Volume output to be written to the terminal. I have seen that there is a way to split the output with tee, ...
1
vote
4answers
107 views

How to set the process won't be terminated when the terminal stops

[Edit] Make it simple. I invoked java xxx... on Machine A using putty to connect from Machine B. However I cannot reach Machine B. How can I connect Machine A from Machine C to set the running ...
6
votes
1answer
331 views

tmux status line with blank line on top?

I have a nice tmux status line, but I don't like how the bash/commands run flush along it...that is, if the screen is full, i'm typing things right above the status line. I'd like a one line break ...
3
votes
1answer
61 views

How does SSH display the message “The authenticity of host .. can't be established”?

I wanted to trace down the system call used by ssh to output this warning message: > ssh root@abcde The authenticity of host .. can't be established. If the message were sent to stderr or ...
11
votes
5answers
8k views

Can a Gnome Terminal profile use UTF-8 by default?

I am on an Ubuntu (I think) system. I don't have root, so I can't change the locale. I want to make my default terminal profile use UTF-8 by default. There should be a way to do this, either in the ...
3
votes
4answers
322 views

Keeping a process running on server even SSH is closed [duplicate]

I am running long program on server, which is basically Jar file of java program. I want to keep this program running even if SSH terminal is closed, how I can keep this program running on server?
1
vote
3answers
352 views

Uninstalling *.run file

I just installed a file called SenchaCmd-4.0.2.67-linux-x64.run by executing the following code: ./SenchaCmd-4.0.2.67-linux-x64.run Due to a problem I describe in detail here, I decided to ...
-2
votes
1answer
809 views

Arch Linux terminal not starting

I just installed Arch Linux following a video tutorial from youtube for the first time. However, when I try starting the GNOME terminal it won't start. It will say Terminal at the top of my screen for ...
2
votes
3answers
79 views

How to read over 4k input without new lines on a terminal?

So I have a lot of data WITHOUT NEW LINES on the clipboard (it's a large SVG file on one line). I went $ cat >file.svg then tried to paste (in Gnome Terminal), but only the first 4kB characters ...
0
votes
2answers
70 views

Pull Metadata from a video in the terminal

I am writing a bash script that I want to echo out metadata (length, resolution etc.) of a set of videos (mp4) into a file. Is there a simple way to get this information from a MP4 file?
1
vote
4answers
6k 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?
2
votes
1answer
143 views

arrow keys are not working with terminal server telnet (termnetd) session

I am using terminal server package termnetd 3.2, which reads serial port and gives output on telnet port. I logged into terminal server port, every thing works fine except the arrow keys, Home and End ...
1
vote
1answer
34 views

Meaning of entries in /etc/securetty?

I've been given a set of entries to apply to /etc/securetty, what does each of them mean? console tty1cd / tty2 tty3 tty4 tty5 tty6 ttyS0 ttyS1 I'm especially interested in the "tty1cd /" entry. I ...
4
votes
1answer
252 views

Emacs ansi-term and term not working well when I ssh into a remote machine

I have the exact same Emacs configuration on a local and remote machine, and when I run M-x ansi-term or M-x term on each of them individually everything works great. However, if I run any of these ...
7
votes
4answers
4k views

Prevent SSH client passing TERM environment variable to server?

I'm currently using Fedora 18 gnome-terminal, then started tmux multiplexer in it. After I connected to a CentOS 5 server via ssh command, I find: ls result has no color tmux, screen, hexedit, htop ...
2
votes
1answer
106 views

bash not reading $TERMINFO on login (over SSH)

I have a OpenVZ Fedora 20 VPS that when I SSH into, my termcap file stored in $XDG_DATA_HOME/terminfo/x/xterm-termite, isn't being read, despite having TERMINFO=$XDG_DATA_HOME/terminfo set. If I ...
0
votes
1answer
63 views

Search for pattern across multiple files and replace a sub-part in all occurences

I am helping a friend with her thesis written in LaTeX and I need a quick solution for a "search and replace". Using a terminal in Linux, how can I find the following pattern: \caption{*\cite{*}} ...
-1
votes
2answers
53 views

Linux Terminal SSH Username Change

I want to connect via ssh to my Ubuntu server from my Linux PC. Xterm uses my Linux PC username for the login. I've another username on the server. It's not the same name like on my Linux PC. How can ...
0
votes
0answers
32 views

terminal text editor with Windows like hotkeys [duplicate]

As a Windows user (please forgive me) interacting with GNU\Linux through SSH I am looking for a terminal-based text editor that has similar hot keys to most Windows text editors which I have grown ...
34
votes
6answers
3k views

Can I configure my shell to print STDERR and STDOUT in different colors?

I want to set my terminal up so stderr is printed in a different color than stdout; maybe red. This would make it easier to tell the two apart. Is there a way to configure this in .bashrc? If not, is ...
0
votes
1answer
39 views

How to display `top` results sorted by memory usage in real time?

How can I display the top results in my terminal in real time so that the list is sorted by memory usage?
4
votes
1answer
186 views

Presentation Tools Back In The Day

Which tools were around »back in the day« to aid presentation Unix/Linux environments? I just wondered how somebody would accomplish something like slides in a e.g. text-based environment or low-end ...
0
votes
1answer
47 views

Is it possible to `tail -f /dev/vcs`?

I would like to get a continuous stream of output from the virtual terminal. Is that possible? If not, why is tail -f not working here?
11
votes
3answers
890 views

Why is the unit separator (ASCII 31) invisible in terminal output?

The unit separator ASCII character (ASCII 31, octal 37), is visible in Vim as a ^_. But if I print the same file to the terminal, the character is invisible. This causes the fields on a line to get ...
0
votes
0answers
54 views

Schemes for linux tty and xterm

I actually prefer the font and colorscheme used when I'm in a tty terminal. After I start up a window manager, the colorscheme and font are completely different when I'm in xterm -- which is expected. ...
0
votes
2answers
1k views

conio.h file missing error [closed]

I want to execute a .cpp file while contains the #include <conio.h> header file, but while executing I'm getting the following error: "program.cpp:4:20: fatal error: conio.h: No such file or ...
9
votes
5answers
2k views

Displaying week's number in certain format using ncal or cal

Don't you just love it when two commands each do one thing you want but neither do both? This is what cal does. Nice formatting. Lacks week numbers though. $ cal January 2012 Su Mo Tu We ...
0
votes
3answers
97 views

Open a terminal with a login prompt [closed]

I want to open a terminal (xterm, gnome-terminal, tilda, whatever) and have it prompt for a username and password to login as. I thought this would be simple but all my Google results are polluted ...
3
votes
3answers
81 views

stout can not append to large files

I have Ubuntu 13.10. I have a keylogger to help me remember what I did. Running keylogger prints output to the terminal when I run it like this: keylogger I added it to startup like this: ...
5
votes
2answers
127 views

bold text when using 256 colors

I am configuring colors in Mutt, but I think my problem is general to linux terminal. For the 16 predefined colors (such as red) I can make it bold, by specifying brightred However, when using 256 ...
2
votes
2answers
46 views

How to format textutil -excludedelements

I use Geektool on the Mac to display various information on my desktop. One feature of Geektoool is the ability to use shell mode to launch custom scripts or commands. I am not versed in any type of ...
1
vote
3answers
74 views

Remove multiline text with special chars from all files in a folder

I have multi-line text with special characters (i.e. //*(): etc) looking like following in multiple files in a folder that I'm trying to remove. Tried all different solutions using sed and awk but ...
0
votes
1answer
72 views

Backlight powersaving: Working in X11, but backlight does not turn off on virtual terminal. Gentoo, Asus EeePC 1015bx

I'm facing a puzzling issue on my laptop, an Asus EeePC 1015bx, which has an AMD C-60 APU and is running Gentoo. Although the screen powersave functions are working in X11, the backlight does not ...
0
votes
0answers
31 views

Apt-get Command not found for OpenDaylight

I am using OpenDaylight Ubuntu Mininet, when I want to do a sudo apt-get install it tells me Sudo: apt-get: command not found Here is the official code. [mininet@opendaylight ~]\>sudo apt-get ...
2
votes
2answers
114 views

Getting 256 colors to work in terminal multiplexer

tmux I followed Getting 256 colors to work in tmux: I have alias tmux='TERM=xterm-256color tmux' in ~/.bashrc and also set-option -g default-terminal "screen-256color" in ~/.tmux.conf In konsole: ...
1
vote
2answers
212 views

Emacs: Switching automatically to char-mode when switching to an ansi-term window

Say I have multiple windows open in Emacs 24.1 and that one of those windows is an M-x ansi-term window with a shell. By default, when I switch to an ansi-term window, Emacs activates Term: line run, ...
1
vote
1answer
134 views

Terminal, Prompt changed to “-Bash-4.2” and colors lost

Usually my terminal prompt was username place$ now it only shows bash-4.2$ and all the color settings have been lost (on the terminal profile I have the same color scheme, but it just don't show ...
6
votes
2answers
1k views

what will ¬ do in bash?

While wanting to start gitg as backgrounded through writing gitg & I accidentally typed gitg ¬. This did not cause an error, instead I got with a later command in the same terminal (translated): ...
26
votes
5answers
1k views

How does clear command work?

I was recently trying to learn more about how the shell works and was looking at how the clear command works. The executable is located in /usr/bin/clear and it seems to print out a bunch of blank ...
16
votes
4answers
5k views

How to scroll in a terminal using keyboard?

How can I scroll in bash using only the keyboard? If it's not possible in bash, are there any other shells that support this?
0
votes
0answers
22 views

Convert rgba color value to a Terminal supported color

Randomly I will take the following example: rgba(122, 143, 186, 0.54) How can I convert this color to the closest Terminal supported color?
2
votes
1answer
3k views

What is the command or hotkey for stopping a running program in DrJava?

I installed DrJava about a week ago. Its been working fine so far but I ran into an infinite loop and wanted a way to stop the program from running without having to force DrJava to quit. Is there a ...
0
votes
0answers
19 views

How to bring back `irb` back to teminal screen

I run a program by irb that have rescue and retry statement. Accidentally, I closed the irb running terminal. But process itself is still alive like this. ps ax | grep irb 17749 pts/0 S+ 0:00 ...
3
votes
2answers
1k views

How can I check which terminal definitions are available?

The bulk of the question is in title, but to elaborate a little: On most Linuxes I can find /usr/share/terminfo -type f. But on Solaris machine I have nearby - this directory doesn't even exist. I ...
5
votes
2answers
596 views

Log file visualizer in a Terminal (UNIX) (terminal logging replay)

I need to log in to various servers via ssh, and its a useful thing to log the terminal (even things in smitty menus/AIX and with correct/exact date/time). I already have a solution for this: 0) # ...
1
vote
1answer
55 views

Combining local and remote terminal multiplexing

I use tmux regularly to easily handle multiple terminals on my local machine. Sometimes, I need to connect to a remote machine and start a script in one the terminals (i.e. a pane or window in tmux). ...
0
votes
1answer
54 views

Highlight patterns in command output (grep-like but without excluding lines) [duplicate]

I need a command that colorizes some symbol sequence in output of a certain command. I'd like it like grep make it. $ some-command | grep symbol-sequence However grep removed lines that isn't ...
2
votes
0answers
47 views

tmux: shared session, one user in a pane, another in another pane, two different cursors

I've decided to try tmux: have been reading the docs and googling around, trying to find a way to have two users sharing a session, each with a different cursor. However, giving 777 permissions to ...