All Questions
Tagged with terminal command-line
57
questions
460
votes
11
answers
668k
views
How can I run a command which will survive terminal close?
Sometimes I want to start a process and forget about it. If I start it from the command line, like this:
redshift
I can't close the terminal, or it will kill the process. Can I run a command in such ...
160
votes
5
answers
275k
views
How do I attach a terminal to a detached process?
I have detached a process from my terminal, like this:
$ process &
That terminal is now long closed, but process is still running, and I want to send some commands to that process's stdin. Is ...
31
votes
1
answer
9k
views
What protocol/standard is used by terminals?
I was wondering how the "GUI" of a command line application is communicated over a network. Most of the time, it's quite simple (plain text / input) but sometimes it's more complex (aptitude).
Is it ...
25
votes
2
answers
35k
views
Ctrl+D for ending terminal line input
If I do
$ cat > file.txt
textCtrl-DCtrl-D
Question 1: If I don't press enter, why do I have to press Ctrl-D twice?
If I do
$ cat > file.txt
pa bam pshhhCtrl-Z
[2]+ Stopped ...
106
votes
3
answers
164k
views
How to signal the end of stdin input
In Bash, I learned that the ending signal can be changed by here document. But by default how can I signal the end of stdin input?
I happened to find that with cat and chardet, their stdin inputs can ...
2
votes
1
answer
2k
views
Send commands to another terminal
I have this setup where I have computer with ssh and a display where I have a user logged in to terminal. What I want to do is send commands like I was using that local session with keyboard. I tried ...
140
votes
16
answers
645k
views
How to connect to a serial port as simple as using SSH?
Is there a way to connect to a serial terminal just as you would do with SSH? There must be a simpler way than tools such as Minicom, like this
$ serial /dev/ttyS0
I know I can cat the output from ...
120
votes
4
answers
165k
views
How can I create a message box from the command line?
How can I create a message box from the command line, either GUI message boxes or message boxes shown inside the terminal?
It would also be interesting to be able to get a simple input back from the ...
36
votes
2
answers
62k
views
What does the tilde (~) mean at the end of a filename? [duplicate]
What is the file with the ~ at the end of the filename for?
$ ls # aliased to add flags
-rwxrwxr-x 1 durrantm 2741 May 16 09:28 strip_out_rspec_prep_cmds.sh~*
drwxrwxr-x 13 durrantm 4096 May 16 14:...
74
votes
7
answers
165k
views
SSH inside SSH fails with "stdin: is not a tty"
I'm trying to connect to machine one with ssh and then connect to another machine two with ssh, but I get this error.
ssh [email protected] 'ssh [email protected]'
stdin: is not a tty
...
44
votes
3
answers
25k
views
Why is the password I entered not visible?
Below is the process I took to create a user on bash in Linux.
$ sudo useradd Alexandra
$ sudo passwd Alexandra
Enter new UNIX password:
Enter new UNIX password:
passwd: password updated ...
26
votes
7
answers
12k
views
xargs and vi - "Input is not from a terminal"
I have about 10 php.ini files on my system, located all over the place, and I wanted to quickly browse through them. I tried this command:
locate php.ini | xargs vi
But vi warns me Input is not from ...
12
votes
2
answers
5k
views
What can I do if bash stops echoing?
One of the applications I use at work sometimes screws with my bash and so I don't see my own input anymore. I.e.
$ echo foo
foo
$
becomes
$ foo $
I incorrectly tried to run stty -echo which made ...
6
votes
3
answers
15k
views
Is there a command to display colors when giving hex value in terminal?
How can I display colors in terminal to handle hexadecimal color values ?
It can be useful for theming, XResources etc.
For example :
$ command '#FF0000'
// display a red square
I use urxvt, i3wm ...
5
votes
1
answer
4k
views
How to set shell to wrap words for long commands?
I connect to a Slackware server. When a command is longer than the size of the putty window, the line continues in the same line, and the start of the command disappears as I continue adding to the ...