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

1
vote
2answers
96 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
77 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
67 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
97 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
116 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 ...
15
votes
1answer
4k views

GNU Screen: new window name change

I can change the name of a window with Ctrl-a Shift-a. Instead of editing several window names by hand, is there a way to have them automatically named after the current directory?
7
votes
3answers
314 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 ...
2
votes
0answers
154 views

Logging interactive input and output without capturing all typed input and control characters

I am trying to log output from an interactive command-line program; units, specifically. I have tried using tee like this: units | tee units.log or script like this: script -c units units.log ...
1
vote
1answer
35 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
375 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 ...
1
vote
3answers
235 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
77 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?
6
votes
1answer
2k views

Force GNU screen to reflow to current terminal width on reattach?

I would like to force GNU screen to reflow to the existing terminal width when I reattach a session. It seems to me this worked properly before I upgraded a machine to CentOS 6, but I cannot figure ...
0
votes
2answers
4k 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
78 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
295 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 ...
1
vote
1answer
5k views

Linux shell - 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 ...
11
votes
4answers
7k views

Can a Gnome Terminal profile use UTF-8 by default?

I am on an Ubuntu (I think) system. I don't have root, so I can't change the locale. I want to make my default terminal profile use UTF-8 by default. There should be a way to do this, either in the ...
4
votes
1answer
131 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
95 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
31 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
121 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
84 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
78 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
546 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
478 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
317 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
222 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
391 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
57 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 ...
18
votes
6answers
2k views

Using VI keys to edit shell commands in UNIX

I used to have a co-worker who was really good at UNIX. He showed me how to use Vi key bindings to edit my shell commands. He placed the command in a file that ran every time I logged in. Since ...
13
votes
4answers
5k 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 ...
0
votes
0answers
22 views

Keyboard shortcut glossary for terminal apps

I would like to be able to fire up any terminal app (including ones I've never used) and see, on my second monitor (which is actually a second iPad running a terminal emulator) a glossary of keyboard ...
1
vote
2answers
122 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
259 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
104 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
322 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
179 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 ...
4
votes
1answer
97 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
54 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 ...
0
votes
0answers
104 views

gdb debugging in Terminal OS X (10.8.5) with zsh - zsh doesn't know gdb

For my studies I have to run a binary unix-program called bomb with gdb. Some time ago I followed the steps on ...
2
votes
2answers
127 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
146 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
1k 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
143 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 ...
6
votes
2answers
464 views

Pushdown Terminal Output

Is there a standard way to reverse the output order of a terminal output, ie: ~/Developer $ command0 -bash: comman0: command not found ~/Developer $ command2 -bash: command2: command not found ...
1
vote
2answers
66 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?
6
votes
5answers
1k 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.
5
votes
2answers
478 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 ...