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

2
votes
1answer
58 views

How to substitute one color code for another in terminal?

Can I make bash automatically substitute one color code for another? For example, whenever a program outputs text wrapped in color code for bold foreground, I would like bash to actually use code for ...
1
vote
0answers
16 views

how to set up the format of a title of the tabs of Terminator?

I can't find any method of how to set up the format of a title of the tabs of Terminator. it's probably has to do with its config at ~/.config/terminator/config but how exactly? I want to shorten ...
0
votes
1answer
36 views

Giving a user permission to modify/edit/delete files in “/” directory (Not using Terminal, but with File Explorer)

I'm currently having an issue trying to give a user the permissions that the 'root' user has, which is to modify anything in the / directory. I've changed the /etc/passwd file but still no luck. I've ...
5
votes
2answers
258 views

How is the su command masking/protecting my password from being displayed on screen? [duplicate]

Apologies if this is an abstract question - I'll try to be as specific as possible. When I'm at the bash shell and switch to a different account via su - foo, I'm prompted for a password. The ...
2
votes
3answers
117 views

Trying to understand .bashrc, env, and export

Disclaimer: Using bash. I just need some confirmation / correction on my understanding of these things: env is basically displaying the current environmental variables that are accessible to my ...
0
votes
1answer
49 views

How to overwrite the default shortcuts of the terminal in xfce?

I have xfce installed and use xfce terminal. I can't figure out how to overwrite the default shortcuts so that I can use Ctrl+C(V) for copy/paste in the terminal. So far in other desktop environments ...
3
votes
3answers
457 views

How to know if extglob is enabled in the current bash session?

I have a bash terminal open. I want to find out whether the option extglob is enabled or disabled in this session, before I change its value. How can I do this?
1
vote
0answers
78 views

Terminal colors changing when opening a new tab

I'm running Ubuntu 14.04 (x64 desktop edition) and I have an issue in my terminal (bash) where my colors seem to get "saturated" and my line cursor changes to black when opening a new tab, the first ...
0
votes
2answers
113 views

Execute a shell script via crontab

Currently I got stuck by trying to execute a shell script via crontab. It does not work and I can't figure out what is wrong here. What I want to do is: Execute a javascript (index.js) file with ...
0
votes
1answer
41 views

is not possible to open the terminal emulator?

Hello all i can't open the terminal emulator, when i try to do it, i can see the lines on the picture and then gets closed. i tried to create a new user but is giving, it worked but i can't compile ...
1
vote
1answer
31 views

Linux Terminal autologin only once after reboot

I'm trying to have my computer automatically log in as a specific user after reboot on an Arch Linux machine. I followed the guide from the Arch Linux Wiki, ran # systemctl edit getty@tty1 and pasted ...
0
votes
1answer
137 views

xterm no absolute path found for shell

I am trying to run a script in SUSE Linux Enterprise 12 from java using ProcessBuilder. Codes for this follows: ProcessBuilder pb = new ProcessBuilder("xterm", "-e", "script_path"); Process pr = pb....
0
votes
0answers
25 views

bash's pseudo terminal master [duplicate]

I learn when we use pts, there is master of pts. Then, when we type the characters on the pts(which is the terminal of bash), not only the output of bash goes to pts but also its master? I confirm ...
0
votes
1answer
201 views

How to have Terminator display remote hostname in title bar? [duplicate]

When I am SSH'ed into any one of my Linux devices, the title bar on Terminator displays user@hostname, where hostname is the computer I am SSHing from, rather than the computer I am SSH'ed into (i.e. ...
93
votes
2answers
47k views

Ctrl-s hang terminal emulator?

I came across a sentence in vimdoc: Note: CTRL-S does not work on all terminals and might block further input, use CTRL-Q to get going again. and this key indeed hangs my vim. I was ...
0
votes
2answers
192 views

Removing ISO 9660 from USB using Terminal

I received a USB flash drive that contains a pre-installed ISO 9660 (Joliet) image on it. To delete the image and free up space on the drive, I attempted to use sudo rm -rf /Volumes/ISONAME via a ...
1
vote
0answers
38 views

Switching (su) to a paswordless account

I've made account A passwordless with passwd -d A. Now, when I log in as user B from a terminal and run su A I can switch to user A (and I am not even asked for a password). If, however, I log as ...
2
votes
3answers
373 views

New line after the command prompt

Is there any way I can configure terminal applications to display command text from front of $ to under the user name on terminal window? See image attached. I use terminator.
31
votes
3answers
4k views

Why is the password I entered not visible?

Below is an image of the process I took to create a user on bash in Linux. I understand that the password shouldn't be displayed for security purposes, but what I mean is, why do asterisks (or the ...
2
votes
1answer
54 views

Capture tmux status bar content

I wrote an addon to tmux, tmux-gitbar, it adds to tmux status bar some information about the current Git working tree (name of local and remote branch, working tree is clean?, etc.). So basically it's ...
42
votes
3answers
107k views

What is the best text-mode browser? [closed]

I am looking for one that is updated frequently and has support for many things.
3
votes
1answer
77 views

Changing fonts in the Mate terminal application

How would I change the font of my terminal in FreeBSD to the Noto Sans font? I am interested in Noto's support for a wide variety of Unicode characters. I downloaded the font using the package manager ...
1
vote
3answers
2k views

Reopen a last closed tab in gnome terminal?

Can we reopen an accidentally closed tab in gnome terminal? Assume the closed tab is the last closed one. In firefox, we can use Ctrl-shift-t to do that. But I haven't found away in gnome terminal ...
35
votes
5answers
2k views

Syntax highlighting in the terminal

Lots of programming-oriented editors will colorize source code. Is there a command that will colorize source code for viewing in the terminal? I could open a file with emacs -nw (which opens in the ...
1
vote
1answer
37 views

How I can change the home directory of the sftp server on MAC OS X?

I'm trying to set up SFTP's home directory on a MAC OS X Mavericks for user my_user. Now, it looks like: /Users/my_user (i got it with sftp> pwd command) but I want it be: /Users/my_user/Documents/...
0
votes
0answers
35 views

Override obxprop | grep “^_OB_APP” values with Bash

I'm used to launch some of my apps from bash, like Irssi with Tmux, in the following way: #!/bin/bash urxvt -icon "/usr/share/icons/irc.png" -title "IRC" -e /bin/bash -i -c "tmuxinator irssi" But ...
3
votes
2answers
103 views

Relations between control characters, signals and terminal

What are the relations between control characters and signals? Or are they unrelated? Are control characters received by a terminal? After a terminal receives a control character, is the terminal ...
8
votes
2answers
15k views

exit tmux window without quitting the Terminal program

OK I'm new to this. I installed tmux to run a several days experiment. After typing tmux new -s name I got a new window with green banner at the bottom. I compile and run java program. Now I do not ...
0
votes
1answer
27 views

Delete file returned by “mpc search” with single command

using the mpc search command I can find a the filename of a song like so: mpc search title 'Two Weeks' The output would look like this: Grizzly Bear - Two Weeks.mp3 Since I also know the location ...
1
vote
1answer
67 views

Make terminal content fit the window size

I have a fluxbox environment that uses Eterm to open a telnet connection to my server. I set Eterm to have the biggest fint possible, but it's not full-width. Is there a way to set Eterm to make the ...
1
vote
0answers
67 views

How to use wget to process a html file before downloading a file [closed]

I'm trying to write a bash script to download a certain file. In order to download the file, you need to be logged in, first to access he file, secondly because the file is generated with you ...
8
votes
3answers
1k views

Copy a long single-line text from a terminal with undesired change-line

locate ... | less outputs a long path, which is shown as several lines in the terminal, although it is actually a single line. I copy the path from the terminal by selecting the text with mouse and ...
3
votes
2answers
118 views

How can I determine if a process is running unseen in terminal?

For ex - if I enter ping one.com the process will keep running - if I want to stop that process, I can type Ctrl C which if I'm not mistaken, will kill the process completely. If instead, I stop it ...
1
vote
1answer
58 views

Setting Terminal tab names in OS X and using vim

I regularly ssh into a Linux cluster from an OS X (El Capitan) Terminal, sometimes with multiple Terminal tabs. I use bash and vim. I'd like to do the following: while ssh'd, set the Terminal tab ...
1
vote
1answer
81 views

How can I display image clearly in xterm

All of the open source software that I used,only w3m can display image clearly,I want to try to display image in xterm,how can I accomplish it? I tried 'tput' command to change the color of output ...
0
votes
0answers
21 views

Is there a way to switch between layouts in `terminator` while it is open?

In terminator, the only way to use a custom layout seems to be to execute the command terminator -l layout_name in the terminal. But I would like to change the layouts on the go, while terminator ...
2
votes
2answers
31 views

How to get out of opened documents in the terminal?

I use to press CTRL+C, but there are some cases where this key combination doesn't work. E.g. if you open the perl docs: perldoc File::Path The documentation is presented on the terminal and I can'...
15
votes
2answers
2k views

Why doesn't the Enter key send EOL?

Unix / Linux EOL is LF, linefeed, ASCII 10, escape sequence \n. Here's a Python snippet to get exactly one keypress: import sys, tty, termios fd = sys.stdin.fileno() old_settings = termios.tcgetattr(...
17
votes
4answers
2k views

How to fix a terminal after a binary file has been dumped inside it?

After having played with curl, a binary file has been dumped inside my terminal. For example, the horizontal lines: ─ I use to format my prompt are replaced by 'q', and it can be much worse. Why ...
1
vote
1answer
70 views

What is the most probable cause of terminal freeze / unresponsive keys?

What is the most probable cause of terminal freeze / unresponsive keys? I'm a relatively new Linux user (2 yrs) and am still learning to use the command line. I have used xkill and similar commands to ...
0
votes
1answer
68 views

how to get terminal to show root prompt in su

I am logged into a (normal) user, but when I go su : password my normal promt goes into showing me this instead of what it should. how to I fix this? ターミナル 10:15 AM (~) $ su Password: \033[1;...
3
votes
2answers
72 views

Get the terminal emulator name inside the shell script

I have used pstree to find the name of the parent emulator of running shell script using something similar to the following: pstree -s $PPID | awk -F '---' '{print $6}' This works in my current ...
31
votes
2answers
111k views

Sending messages to another user

Is there any command to send messages through the Linux shell to other people on the same network? I'm using write user and then write the message itself. But there's any command that doesn't show my ...
2
votes
1answer
912 views

xfce4 terminal: disable individual shortcut

I would like to disable the Ctrl+Shift+W shortcut which closes the current terminal tab. I am using Vim where Ctrl+R Ctrl+W moves between windows of the vim instance. Sometimes it may happen that the ...
0
votes
1answer
18 views

can i use .bash_profile to create an alias which copies text from a file? [duplicate]

I have a long string of text saved in a file that I want to easily copy to clipboard using Os X 10.11 terminal
22
votes
6answers
15k views

How can I close a terminal without killing its children (without running `screen` first)?

sometimes I run an app in the gnome-terminal, but then I suddenly have to restart gnome or something. I guess the answer to the question is also useful then I want to disconnect from SSH where ...
0
votes
0answers
36 views

Sorting results from ls [duplicate]

I was wondering if there was a way to sort through ls results on the command line. Sometimes I use ls to get the exact name of the folder or file I want to use in a command. So it would be nice if ...
0
votes
1answer
47 views

Setting anacron on mac

I set cron to run script every day using env EDITOR=nano crontab -e where I wrote something like this @daily path/to/sript.script Now I want to use anacron to be sure that script is going to be run ...
0
votes
1answer
24 views

Installing from via terminal (YUM) vs using GUI with dependencies

Hello I'm using Red Hat Enterprise Linux Server 6.2, I'm having issue installing package in via terminal. I already have packages in specific folder including the dependencies. For example, when i ...
6
votes
1answer
576 views

Create clickable links in terminal

Is it possible to process/transform the output from grep (or produce grep-like results, finding strings and/or patterns in files, some other way) such that the search results can be used as links (i.e....