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

31
votes
1answer
851 views

What happens when Ctrl + Alt + F<Num> is pressed?

I am looking for an explanation of what happens in Linux when this key combination is pressed to change the current terminal. In particular, what software component intercepts this key combination and ...
2
votes
3answers
1k views

Pasting binary data into a Unicode terminal

I need to be able to paste binary data into a terminal. For some reason, every byte outside the ASCII range (0x80-0xff) is pasted as the same three byte sequence 0xef 0xbf 0xbd. For example: $ echo ...
1
vote
1answer
82 views

Capture textual snapshot of pseudo terminal

My question is related to Keyboard and Console, but I want to do it for an arbitrary pseudo terminal, and not just the built-in Linux ones. Also, I'm not interested in a stream, I just want the ...
0
votes
2answers
80 views

Accessing Windows Box from Linux Terminal SSH

I am familiar with accessing linux from windows, but how can I go about accessing files on a windows box from a linux terminal via ssh? I'd like to stay away from RDP and just grab files via the ...
1
vote
2answers
1k views

What command line to use to set up Double Commander's “Run in terminal” feature to use XFCE terminal?

Double Commander has a handy "Run in terminal" feature but it is configured to uses xterm by default. Needless to say many prefer to use their desktop environment native terminal client and so do I. ...
0
votes
1answer
150 views

Why does OpenSSL automatically send me Terminal mail?

I for some reason am getting messages from OpenSSL constantly (not literally constantly, but every hour or so) sent to my Terminal mail box saying: Message 1: Subject: Cron ...
3
votes
4answers
531 views

Do any text-based web browsers support unicode box-drawing characters?

I have some html like this: &#x250c&#x2500&#x2500&#x2500&#x2500&#x2500&#x2500&#x2500&#x2500 ...
1
vote
2answers
251 views

Is it possible to control xterm (or specifically a process that xterm has started) from another process?

If I start a process with xterm like this (where omxplayer is the process xterm is starting): xterm -fullscreen -fg black -bg black -e omxplayer -o hdmi -r %f Is it possible for me to write to ...
1
vote
2answers
117 views

Using globbing/wildcards when Opening Files from Terminal

I have a folder A. Inside the folder, there are some files a,b,c,d and there is a subfolder, B, containing files e,f,g. Suppose I want to open files a,b,c,d: then I just type xdg-open *. However, ...
0
votes
2answers
313 views

How to change user name

I somehow changed my prompt (PS1) from [mpatil@localhost ~]$ to bash-4.1$. I also have changed my user mpatil's home directory from /home/mpatil to /home/algo. Now some applications are not working ...
-4
votes
3answers
402 views

How can I change my username? [duplicate]

My current username is mpatil, how can I change that to algo without losing data or causing problems?
2
votes
3answers
312 views

How can I tell echo/printf in Bash to swallow escape codes, based on a condition?

I have a Bash script that is being run interactively and as a cron job. When run interactively it outputs colored text on the terminal. However, when run in cron it doesn't have a terminal and ...
7
votes
3answers
423 views

How does less know the terminal resolution?

Everytime someone set a different size for a virtual console, less recognize window-resolution (I'm assuming that ...); according to that it changes how many lines of text it should visualize. How ...
1
vote
1answer
106 views

Make terminal print name of parent process OSX [closed]

Slightly above n00b, but not by much. I made an alias to search for and display all of the processes associated with a specific user account that seem to auto initiate every time I log in, which are ...
1
vote
2answers
1k views

Simple console text editor suited to python

I am looking for a light weight shell editor for Linux that a young child (eg 7-8 year old) can write python scripts in. The motivation is to find something that is helpful for a beginning programmer ...
2
votes
3answers
1k views

Open a text file in a terminal and auto-refresh it whenever it is changed

How do I open a text file in a terminal with instant auto-refresh every time it is changed? I've looked at vim with :set autoread, but it requires some elementary input (such as a keypress inside ...
1
vote
1answer
281 views

How to change permissions from root user to all users?

I created a folder on the command line as the root user. Now I want to edit it and its contents in GUI mode. How do I change the permissions on it to allow me to do this?
0
votes
2answers
14k views

how to access root terminal in kali linux

I am currently using Kali Linux but I have a problem. In my Kali OS, when I open root terminal then it simply starts a normal terminal. I cannot access root terminal. When I update my root terminal ...
0
votes
2answers
124 views

Using Pipeline to Direct Files to Program that Opens Them

I have a Music folder, in which I have some music tracks, which aren't organized too well. Thus, if I want to find a particular track, I usually type: ls Music | grep <keyword>, where ...
1
vote
1answer
828 views

ssh (remote console) between 2 computers from different private networks

I have two computers. Both of them are from different private networks. I'd like to connect from one of them to another (to program on it remotely). I attempted to use some remote desktop software ...
5
votes
1answer
437 views

Can I set a bash timeout only for virtual consoles (ctrl+alt+{f1-f6})

I know that I can set a TMOUT variable to automatically end a bash session after a specified period of inactivity. However, what I want is to apply that only to my 6 built-in virtual consoles, which ...
5
votes
9answers
1k views

Unix without a GUI for old machine

I have been given my father's old computer, which currently runs Windows 95 and has a 133-MHz processor, a Pentium(r) according to "My Computer". It seems a shame to recycle it when it works so well ...
2
votes
1answer
290 views

'who --message' -> which message?

I found the following in man who: -T, -w, --mesg add user's message status as +, - or ? --message same as -T --writablesame as -T So looked up info who and found -w -T --mesg --message ...
0
votes
1answer
38 views

Unexpected output after switch to root

Does somebody know, why I get -ne (probably param from echo from section of setting PROMPT_COMMAND line 23) after I switch to root? Here is my /etc/bashrc. Bash 3.2.51, OS X 10.9 ...
1
vote
1answer
346 views

Trying to login-in in the Ubuntu tty

I am having some trouble starting the recently upgraded Ubuntu. So, I try to boot in recovery mode, and start a terminal (with Ctrl + Alt + F1). However, when the terminal starts, I get the prompt ...
4
votes
2answers
146 views

Shift-Space in less

In modern web browsers and other software with text content, Space scrolls down more or less a screenful. ShiftSpace scrolls up in everything but less. How can one use ShiftSpace to scroll up in ...
1
vote
3answers
89 views

Terminal: Use different command on previous file

I know that there is the !! command to reuse the previous command. How would one reuse the file or directory specified in the previous command but use a different command on it? Example: I want to ...
2
votes
3answers
1k views

How to open konsole in fullscreen mode?

Is there a command or better yet a setting in the config file to allow me to open konsole (the KDE terminal emulator) in fullscreen mode?
5
votes
1answer
2k views

terminal: displaying special characters

In some programs, such as htop the lines and frames are not displayed correctly. Instead, they are displayed as - and /. But on another machine, they are displayed correctly as proper lines: I ...
1
vote
1answer
2k views

Ubuntu- How do I change clock speed from terminal? [duplicate]

The title of this question pretty much says it all. What command or program do I need to run in order to change the clock speed to a specific value I want? For example, I'm looking for something like ...
1
vote
1answer
584 views

How do I reload ~/.dir_colors?

I copied /etc/DIR_COLORS to ~/.dir_colors because /etc/DIR_COLORS.xterm was being used and colours in ls --color=auto were too dark. Now, how do I get this file to take effect immediately? (i.e. ...
4
votes
1answer
484 views

gnome-open replaced by sublime?

Update: It seems that it has been automatically fixed, however the same applies whenever I try to sudo gnome-open or gksu gnome-open Well, this is a really weird one. I'm currently running Mint 13 ...
0
votes
1answer
95 views

Why this sort command gives me an empty file? [duplicate]

prova1 is a file with some text. When I run this code prova1 become empty: sort prova1 > prova1 I know that to achieve the effect I can do: sort prova1 -o prova1 I would just know the reason ...
14
votes
4answers
7k views

Is there a way to lock command line?

For example, in X session, I can use Ctrl-Alt-L to lock the screen, so it would ask for password to unlock and prevent somebody from messing with mine computer. But if I have an open terminal session ...
2
votes
2answers
393 views

talkd doesn't print a message

I wanted to use talk with my brother (we both have Debian jessie). So i installed inetutils-inetd, inetutils-talk, and inetutils-talkd. Now i wanted to try wether it works. So i created a testuser ...
3
votes
1answer
721 views

Is there something like a lorem ipsum generator?

Is there something like a 'lorem ipsum generator'? I know it exists in Latex, and even in LibreOffice, but I'm looking for a terminal command. I would like to type something like loremipsum 10 ...
3
votes
0answers
113 views

No Login on created on tty2 to 6

On my Debian Linux no Login is possible on terminals 2 to 6. Login on 1 works fine, xorg-session with XDM and awesome wm works, too. The Error Message shown on these 5 screens is: ...
0
votes
1answer
619 views

Linux Mint XFCE, command to launch menu

What is the command that launches the whisker menu in the Linux Mint xfce edition. For another distribution that used xfce it was xfce4-popup-whisker menu but that doesn't seem to work. I would like ...
3
votes
1answer
519 views

python3 traceback error

Whenever I mistype any command in terminal instead of getting Error:Command not found I get this python message error Traceback (most recent call last): File "/usr/lib/python3.3/site.py", line ...
5
votes
1answer
321 views

Idle terminal safe character

I'm using iTerm2 on a Mac to do Linux work. In order to avoid losing terminal connections, I turned on "When idle, sent Ascii code". The default is 0. This works like a charm to keep connections ...
1
vote
1answer
73 views

how to make less -S not take up the entire screen

suppose I have this: cat new_file.txt | less -FRSX Then suppose I press the right button in order to scroll to the right This will cause the contents of new_file.txt to move to the top of the ...
2
votes
2answers
192 views

Is it possible to show mathematical symbols in the terminal?

I want to do some program that can help me to check scientific formulars via terminal. It is possible or not if i want to show mathematical symbols (e.g. integral, diff Greek's Alphabets) on Linux's ...
2
votes
1answer
395 views

how can we know which pts in /dev/pts mapping to which ip address?

Can anyone explain , how can we detect which ssh session belong to which ip address using /dev/pts directory ?
3
votes
1answer
8k views

Search text in command output on a PuTTY terminal

I would like to know how to search particular text on the terminal. If I do cat of log files, I would like to find certain words like job or summary so that I don't have to read through the entire log ...
0
votes
4answers
239 views

How do I store long hostnames list for SSH quick usage?

I have an SSH access to a lot of servers. And all that hostnames (and sometimes usernames) are long and hard to remember. Also even if I tweak my Terminal to keep eternal bash history, the using of ...
1
vote
2answers
81 views

How is replaceable text shown in a terminal? [duplicate]

For example after doing apt-get update, it shows Reading package lists... 82% with the percentage changing in the same line. How is that achieved? Is it possible to use it in a bash script?
7
votes
5answers
2k views

How does “top” command show live results?

How can I write a shell script that shows the results in real time? Something like the top command that updates the results after some fixed intervals of time.
6
votes
2answers
795 views

What is the terminal's graphic API?

How can certain programs set background and font colors, write characters to the same location on screen (e.g. to the third row, fifth column) more than once? Some examples are the progress bar ...
0
votes
1answer
257 views

Renaming a Hard Drive

I have a secondary internal HDD to store auxiliary data. I want to give it a better name. How do I do it?
5
votes
1answer
1k views

Mosh: Retain backscroll beyond terminal window height

I'm experimenting using Mosh instead of raw SSH for remote shell connections. So far I like it, but I've become used to being able to page-up or scroll through backscroll in my terminal window to see ...