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
57 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 ...
0
votes
1answer
32 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 ...
0
votes
2answers
66 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 ...
1
vote
0answers
55 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 ...
1
vote
1answer
26 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
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 ...
0
votes
1answer
47 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 = ...
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
123 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. ...
0
votes
2answers
102 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
35 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
359 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.
4
votes
2answers
318 views

How do I print the (numerical) ASCII values of each character in a file?

How can I print the numerical ASCII values of each character in a text file. Like cat, but showing the ASCII values only... (hex or decimal is fine). Example output for a file containing the word ...
2
votes
3answers
104 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 ...
30
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
45 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 ...
1
vote
1answer
26 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: ...
3
votes
2answers
97 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 ...
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 ...
0
votes
0answers
24 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 ...
0
votes
1answer
26 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
49 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 ...
3
votes
2answers
113 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
0answers
54 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 ...
1
vote
1answer
44 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
52 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
19 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 ...
14
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 = ...
3
votes
2answers
159 views

Ctrl-Backspace and Ctrl-Delete in bash

Putting on Debian 8.3 stty werase '^H' or on Arch Linux 2/2016 stty werase '^?' in .bashrc (for example) makes Ctrl-Backspace delete the last word in the terminal. Still it's not the same ...
1
vote
1answer
56 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 ...
3
votes
2answers
60 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 ...
0
votes
1answer
16 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
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
19 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 ...
0
votes
1answer
20 views

Display custom description near username

I'd like to add a custom text nearby my username when I'm logging into my box, for example: "ATTENTION PRODUCTION SERVER! username@hostname:~$" "UAT username@hostname:~$" "QA username@hostname:~$" ...
2
votes
2answers
322 views

Why is yum trying to install the wrong version of node.js?

On a CentOS 7 server, I am trying to install version 5.x of Node.js, but for some reason, yum keeps trying to install version 0.x and returning an error when it cannot find version 0.x at the 5.x ...
1
vote
1answer
61 views

Display file with ANSI colors [closed]

I have a file with ANSI colors. test.txt: \e[0;31mExample\e[0m I would like to display the content of this file in a terminal, like cat does, but I would like to display the colors as well.
2
votes
1answer
64 views

bash shell doesn't appear when terminal is launched

Whenever I launch terminal in my Macbook Pro. The terminal doesn't show command line of bash shell. What appears is the command line of Mathematica 9.0. It has been long time after installing the ...
1
vote
1answer
42 views

Why “grep -q -v” only works with single line input?

If I use grep -q in combination with -v to return 0 if there are no matches or 1 if there is a match, it works as long as input is a single line: $ echo 'abc' | grep -q -v a; echo $? 1 $ echo 'abc' | ...
1
vote
0answers
15 views

Makikng Alt + h switch to the left pane in tmux

I'm trying to make Alt-h switch to the left pane in tmux. The following does not work: bind -n M-h select-pane -L Pressing Alt-h in cat generates the following in my terminal: $ cat ^[h That is, ...
1
vote
0answers
28 views

history shows only current session

This is what I see in my terminal in a fresh session: Agent pid 6847 Identity added: /home/eric/.ssh/id_rsa (/home/eric/.ssh/id_rsa) ➜ ~ history 1 history ➜ ~ I'm using Linux Mint 17.3 ...
1
vote
2answers
134 views

Debian - How to change Terminal background colors

I am a Git Bash user who is now switching to Debian. Here was my Git Bash's look: Here is my look on Debian: My .bashrc file is completely EMPTY. I have nothing in there currently. I've been ...
1
vote
0answers
27 views

Getting Alt to Work in the Terminal with Tmux and Vim

I'm trying to make Alt + h/j/k/l switch tmux panes and vim windows. Yet for some reason my terminal (xfce4-terminal) and and Alt do not play nicely with each other. I got Alt + h/j/k/l to switch ...
0
votes
1answer
38 views

Program just works in one terminal

I'm executing this command in two different folders and in two different terminals: for i in *_RG.bam; do k=`echo $i | sed "s/.bam/_Reordered.bam/"` java -jar ...
3
votes
1answer
62 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 ...
0
votes
1answer
58 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: ...
0
votes
0answers
25 views

respawn with arguments and tty3 without root?

Please bear with me as I am not a Linux guy. I am trying to start a application to run in a terminal that I can ssh in and conspy to see the activity and also respawn if there is a crash. I have a ...
0
votes
1answer
33 views

How to prevent garbled screen display while running scripts on remote hosts?

Current scenario: I am trying to run Unix shell script from a solaris 5.10 box, within the script one of the tasks is to ssh to another Linux host (ssh-key pair already setup) and run a set of ...
0
votes
0answers
12 views

Problem with rendering fonts in Terminal [duplicate]

I have this problem with font rendering in Manjaro 15.12 - it shows question marks in screenfetch too, instead of a logo. Is there a way to solve this? P.S. Font in Terminal is Monospace, if it ...