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

0
votes
2answers
43 views

Tmux shortcut problem

While using Tmux, I tried to maximise the current pane using <prefix> z, and had a bit of a keyboard fail and accidently held down the prefix keys while pressing z, instead of letting go of the ...
5
votes
1answer
104 views

Can a script determine which characters a terminal can display?

I'm working on a script that displays UTF-8 characters as output. In my Gnome Terminal, this prints out a pretty maple leaf (🍁): $ echo -e '\xF0\x9F\x8D\x81' In rxvt, it prints out a box (the ...
0
votes
1answer
31 views

Return owner of process given PID

I'm trying to grab the owner of a process from a list, I have the command pidof nmap to get the then ps -u <PID> | grep USER that I'm currently playing around with, but when I run it, it ends ...
0
votes
2answers
29 views

Insert/overwrite mode in fish

I'm using Linux Mint on a MacBook and on its keyboard the equivalent for the INSERT key is the combination Fn + RETURN. At the moment I can only see the intended behavior of this combination in GNU-...
1
vote
2answers
36 views

automatically disown application when running it from a terminal

How do you automatically disown an application after you have started it from a terminal? For example: if you start a terminal and run firefox the application will start, but when you then close the ...
0
votes
1answer
28 views

how to echo/print block by block

I just started using tmux and butterfly and I need to scroll one panel. I tried Ctrl + b + ↑ but it scrolled the whole terminal instead of one panel. Is there any command line to display my ...
1
vote
1answer
41 views

xkill Used On Desktop

Mouse accidentally clicked on Desktop while active with an xkill terminal command. Which makes it completely without use. Have used nemo command which resets everything as long as terminal remains ...
1
vote
1answer
21 views

Understanding what is happening when I dump a terminal character sequence with Ctrl-v?

If I want to bind a key-mapping to a function or widget in zsh I have learnt that I first have to hit Ctrl+v - at a prompt, then enter the key sequence I want to use, then use the output in my key-...
1
vote
7answers
72 views

Rename files add dashes after fourth and sixth characters

I have some files such as: 20150716_something-here 20150716_something-heretoo 20150716_something-hereaswell They need to be renamed as 2015-07-16_something-here 2015-07-16_something-heretoo 2015-...
14
votes
2answers
828 views

Colored output?

When I execute a command from a terminal that prints coloured output (such as ls or gcc), the coloured output is printed. From my understanding, the process is actually outputting ANSI escape codes, ...
1
vote
1answer
55 views

stty on old AT&T unix: how to add End-key for “end of line”?

How I can use the ctrl+e keyboard combination in emacs mode to go to the end of the line, but also be able to use the End key to do the same? How do I set that with stty? I have tried this combination ...
0
votes
0answers
112 views

Ubuntu login loop, amongst other issues!

Before I explain the issue, please bear in mind that I am a complete newbie to using Ubuntu on a desktop. I have some Ubuntu Server experience and know the basics of terminal/CLI. Seems like this is ...
0
votes
2answers
27 views

How to get the opened pty for a given background process (without login) in AIX

Using this answer http://unix.stackexchange.com/a/283521/114939 which allow us to find processes that keep an given pty opened without login (who command cannot show them), caused me to ask the ...
2
votes
1answer
39 views

Why are some pts in AIX never reused?

In an AIX system (AIX p740 1 7) that is running for about several months, some pts aren't reused anymore. This was noticed using the "who" command, with the following "awk" expression, running it ...
0
votes
1answer
23 views

Stopping infinit loop from php script run in linux terminal

I am currently following a tutorial that teaches how to create a queue in php. An infinite loop was created in a php script. I simplified the code in order to focus on the question at hand: while(1) {...
4
votes
2answers
32 views

Question about behavior of control key shortcuts

I am confused about how Ctrl-key combinations work in terminal. In bash man page, there are various combinations such as: C-e - go to end of the line C-f - go one character forward etc. But then ...
0
votes
4answers
72 views

Writing output to file, similar to “script” command?

Is there anything that's similar to "script" but does not require the terminal to be open? I want to save the results from my program into a file, however I have some issues. I need to work ...
1
vote
1answer
38 views

How to install MIT Photonic Bands software package on Debian [closed]

How do I install the MIT Photonic Bands software package using Debian?
7
votes
8answers
604 views

Terminal: remember working directory [duplicate]

I have git repos stored in different directories which have long paths /opt/too/long/path/to/type/every/time/git-repo and it's kind of difficult to remember plus to cd to the directory every time is a ...
1
vote
2answers
41 views

How do I get my arrow keys working in the at> prompt

Whenever I try to use the arrow keys in the at> prompt (after, for example, running at now) it just shows control codes, eg. ^[[D for ←. This makes pasting and editing long commands difficult ...
1
vote
0answers
21 views

MOZREPL output showing up in terminal window

I have a very a annoying problem. I've using Mac Terminal over SSH to write Perl script with vim on a local virtual Debian machine. The Perl script uses the WWW::Mechanize::Firefox module which in ...
1
vote
4answers
61 views

How to force `screen` to clear the terminal after commands like `htop`

I have recently started using screen in order to be able to split my terminal vertically and horizontally. However, it does not clear the terminal automatically. For example, when I open a file using ...
0
votes
2answers
38 views

centos7 terminal can't have image as background?

I previously used ubuntu, I can set a image as my terminal background. Yet, in centos 7, I don't see a place for setting image as the terminal background. What can I do to achieve this? It's ...
3
votes
2answers
38 views

Mark descriptor as terminal for the -t test

One can test if a descriptor is connected to terminal with -t test. if [ ! -t 0 ]; then echo "Stdin is not from terminal" fi Having a descriptor X, pointing to a file or to a process (with >(...
2
votes
0answers
23 views

Mount a folder from server in network on mn the local machine permanently

I have a remote server which is connected to my wi-fi modem. So I can access this server by 192.158.188.45 I want to mount a folder from this server on my local machine permanently. I wrote \\192.168....
1
vote
3answers
21 views

using multiple terminal x-windows with one tmux session

I usually work with 2 monitors that are not quite vertically aligned (I have a benchtop power supply under my left monitor), but I want to have 4 terminal windows side-by side on my screens which I ...
2
votes
2answers
62 views

When opening a terminal does not require a login?

Speaking about Linux and in particular Ubuntu (from 14.04) systems: Case 1 - As pointed out in this answer, processes that allocate a pseudo-terminal don't need to make a login: for example, cups. ...
0
votes
1answer
40 views

What is the -c [start-directory] in “tmux new-session” command? [duplicate]

In the manual new-session -c option is listed as use to specify [start-directory] with no further explanation. I have a few question to help me understand: What is start-directory used for? Does ...
1
vote
2answers
24 views

Using fasd to open a file or directory in emacsclient

I'm trying to open files found with fasd in emacsclient. I'm using fasd -e emacsclient -c -a '' set to an alias. Nothing happens when I call the alias, I just get a new prompt. I've tried using Emacs ...
2
votes
2answers
261 views

UTF-8 characters are not displayed correctly in Debian

Short description of my problem: I ran into an issue lately where I am unable to make bash/nano/irssi/etc display "special" UTF-8 characters like the german umlauts (äüö), the euro sign (€) and some ...
1
vote
1answer
16 views

Modifying Audio System Settings via console in OpenSUSE 13.1

My PC has an internal speaker and every time when I reboot linux, the output of the (integrated) sound card changes to this internal speaker. But I want to use my external speakers (via the green jack ...
0
votes
0answers
24 views

It seems like my inputrc file is being ignored by the terminal. When I hit ctrl+arrow it returns ;5C

This is my /etc/inputrc file. And I also have a ~/.inputrc file with the same content: set meta-flag on set input-meta on set convert-meta off set output-meta on $if mode=emacs "\e[1~": beginning-...
1
vote
1answer
45 views

How to read from another terminal?

I opened two terminals (/dev/pts/1 and /dev/pts/2) and started my application from /dev/pts/1. I want to read in real time from /dev/pts/2 but my code doesn't work: actually some of the symbols are ...
0
votes
3answers
30 views

How can I quickly check exactly how many columns my terminal has? [duplicate]

After window resizing, font size changes, etc., how can I easily and quickly check what is the current display width of my terminal?
1
vote
3answers
62 views

Go to first line of console output of a command

Let's say I am calling ls -la, which produces a very long output. Is there any key/command which lets my console scroll up to the first line of the output?
2
votes
1answer
29 views

Which files are displayed or executed after login?

I'm using an embedded Linux distribution (Lime2) on a custom ARM board. On login via SSH, the following is displayed: root@mybox ~ # ssh localhost root@localhost's password: _ _ ...
0
votes
0answers
15 views

Detect bluetooth button press in terminal

I have a bluetooth earpiece samsung HM1100 and im trying to detect its button press in terminal. I have tried this, but hcitool scan is not detecting my earpiece. But it detects other laptops. Is ...
0
votes
2answers
39 views

.sh query - running a ssh task

This is on a macintosh but it's still unix command. I am running some computers on a network that have file sharing turned off because of security so the only way to connect is via ssh. I need to ...
5
votes
2answers
98 views

How can I use the output of a command without using the mouse?

Imagine you issued a find command and now you want to use one line of the resulting output as an argument. $ find .. fileA fileB $ vi <CURSOR> # now do what to achive: $ vi fileB ...
0
votes
1answer
41 views

Process login vs user login

In a Ubuntu 14.04 system, who has the following output: user1 :0 2016-05-02 14:49 (:0) user1 pts/4 2016-05-02 15:10 (:0) So apparently just the pts/4 is used. But, for example, ...
7
votes
3answers
661 views

Real time cmd tool to show HDD space remaining

Is there a command line tool which shows in real time how much space remains on my external hard drive?
0
votes
0answers
30 views

Qubes/Xen OS: access file manager for dom0

I hope somebody more experienced with Qubes specific terminal commands can help. If the KDE manager is installed, how does one open via terminal input the file manager for 'dom0'? To browse 'Home' ...
0
votes
2answers
56 views

What can cause my shell to look like this? [duplicate]

I'm currently developing a home automation framework for my apartment. This involves getting JSON over Serial from an Arduino. When the JSON can't be parsed (usually only on startup) I log it as an ...
0
votes
2answers
45 views

How to see and use the last paths used in Terminal? [duplicate]

I'm quite a newbe. I was wandering: is it possible to see the last paths used in terminal (bash, whatever.., I use a Mac), something like what you do with recent commands? I often use the terminal on ...
0
votes
0answers
21 views

SunOS 5.10 gives invalid terminal

While I login to SunOS 5.10 through putty it shows as terminal vt100: Then what ever command I type it says invalid terminal with the command. For example if i type ls the display will be. ...
2
votes
1answer
46 views

Different vim colors and styles in Tmux and Gnome

I am using tmux, and recently found out that the same vim colorshemes inside and outside of tmux have different colors Left is tmux in gnome-terminal, right is plain gnome-terminal, gnome-terminal ...
1
vote
1answer
69 views

Save cursor position and restore it in terminal

I am playing with some terminal capabilities to create async prompt output on bash. I want to get something like this: while outputting string in PROMPT_COMMAND, save terminal cursor position, print ...
1
vote
2answers
132 views

Disable scroll inside Xfce terminal / Avoid scrolling through command history

Is there a way to disable scrolling through command history for the Xfce terminal? I don't wish to rely on palm rejection, I'd just like it disabled when I'm using the terminal. Specifically I'm ...
0
votes
1answer
163 views

Do any open source Linux terminals and fonts support ligatures?

The PragmataPro Font has some really killer examples where they render == as a single character and clean up a lot of other stuff. Would any Linux terminals support this? And are there any ...
0
votes
0answers
18 views

Trying to download new Yakuake skins on my Arch/Gnome installation, but cannot

Currently I am using Arch Linux with a Gnome Desktop Environment. Now I have chosen to use Yakuake as my terminal. I'd like to use other skins that other people have put up online for my terminal. ...