A terminal is an environment for text input/output. Inside the terminal, one runs command-line and text mode programs (including shells).
3
votes
3answers
52 views
Convert output of script(1) to pdf
You supposedly can make some sort of low-tech replacement to screencasts of your terminal sessions with script(1):
DESCRIPTION
script makes a typescript of everything displayed on your terminal. It
...
1
vote
1answer
36 views
How to generate a set of new different files through shell scripting given a certain pattern name?
How to generate a set of new different files through shell scripting given a certain pattern name?
Said I have this pseudocode:
#!/bin/bash
for i in {1..5}
do
./processing < base.ppm > ...
0
votes
2answers
106 views
How do I print 'block' letters in the terminal?
How do I echo/print block lettering in the terminal like:
?
figlet and toilet don't help. Neither do U+25A0 or U+2588 unicode characters.
This is not a duplicate. As I said, figlet, banner and ...
1
vote
3answers
40 views
Different outputs to different terminals in Ubuntu
I am developing a C++ application, under Ubuntu, and need to broadcast the outputs into several terminals. I need to do this programmatically, calling (for instance) bash commands from the C++ ...
0
votes
0answers
18 views
How do I free up the terminal when I am using emacs? [duplicate]
I know I can open another terminal, but that is bothersome.
1
vote
1answer
17 views
How to connect via LAN Wire and a WIFI Router to the internet (terminal only)
I have a big problem. My cinnamon GUI went down. Now I have to reinstall it. Therefore I need an internet connection. Since I can only work within terminal I have to use that to connect to my Wifi. ...
1
vote
3answers
37 views
Extending Linux terminal Program [on hold]
Any quick ideas on how to write a program that extends the terminal's basic functionality? I want to do everything the terminal does but additionally do some custom processing on whatever the user ...
2
votes
1answer
31 views
Scroll to the last command on Terminal? (like OS X Terminal marks)
Mac OS X Terminal marks are incredibly useful.
For example, when I type a command that echoes a lot output, it's easy to read the beginning with Cmd+Up. It will scroll to the last command and ...
0
votes
1answer
17 views
dhclient connecting to wlan0 after wpa-supplicant setup polls infinitely
I just wanted to try out how to connect to my WIFI WPA2 via terminal.
Therefore I created "/etc/wpa_supplicant"
network = {
ssid = "nameOfWifi"
psk = "passwordNumberThatIFoundOnTheWifiHardware"
...
0
votes
0answers
27 views
Ctrl+D toggles the OSX dock but I want it to be passed to the terminal [migrated]
I'm new to Linux and have been playing around with manipulating files with cat
ie.
cat > randomNames
Albert Einstein
Marie Curie
Isaac Newton
now when I want to quit cat with control + D on my ...
0
votes
0answers
26 views
How is a key sequence processed in a terminal? [duplicate]
My question comes from re-reading Gilles' excellent reply, and my recent comment on it.
In a terminal (physical one, or virtual one such as Gnome terminal), when a key sequence is typed,
is the ...
32
votes
3answers
2k views
How do I create a terminal-based GUI?
I'm looking to create a terminal-based environment to adapt my Bash script into. I want it to look like this:
1
vote
2answers
40 views
A quicker way to change owner/group recursively? [duplicate]
Currently, when I want to change owner/group recursively, I do this:
find . -type f -exec chown <owner>.<group> {} \;
find . -type d -exec chown <owner>.<group> {} \;
But ...
0
votes
2answers
34 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
93 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
29 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
25 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 ...
1
vote
2answers
30 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
26 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
38 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
19 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 ...
1
vote
7answers
67 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
...
14
votes
2answers
809 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
50 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
79 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
26 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
38 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
19 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
29 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
65 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
35 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
581 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
40 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
18 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
58 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
34 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
37 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
...
1
vote
0answers
18 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
60 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
31 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
20 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
147 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
12 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
22 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~": ...
1
vote
1answer
42 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
25 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
58 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
12 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 ...