New answers tagged tty
As a general rule, you never want to do ps aux | grep -v grep, that's what pgrep is for: pgrep -u root The command above will list all processes started by root. You do need ps if you want to 1) exclude those whose name is enclosed with  and 2) restrict to those not listed as running in ttys. You can avoid some of the problems mentioned in the other ...
"arguments that cannot be located" typically means that the process has no command line arguments because it's not a normal user process but one started directly by the kernel. When you're looking for a process that's doing something wrong, it's usually not one of these kernel processes, so your colleague suggested filtering those out. tty is not "just a ...
Frankly it sounds a bit silly. grep -Ev "[" excludes processes having the opening square bracket in their command. While these are often kernel processes, even a regular user space program can have that character present on the command line. grep -Ev "tty" is the same in pale blue. It excludes processes having the string "tty" somewhere on their line ...
how can I switch to tty1 where xorg session is running and back to the session? Because X is running on tty1, but not on tty2. A tty is a "virtual terminal", meaning it is supposed to represent an actual physical screen and keyboard, etc. The terminals are all on simultaneously, but since you only have enough hardware to interface with one at a time, ...
You can switch tty as you have described by pressing: Ctrl+Alt+F1 : (tty1) Ctrl+Alt+F2 : (tty2) Ctrl+Alt+F3 : (tty3) Ctrl+Alt+F4 : (tty4) Ctrl+Alt+F5 : (tty5) Ctrl+Alt+F6 : (tty6) Ctrl+Alt+F7 : (x is here when using ubuntu tty7) You can also use Alt+Left/Right Note that different distros assign these differently. RHEL 6, for example, assigns the X ...
The direct aequivalent of unzip -p -a for 7zip is 7z e -so -bd. But that complains it does not want to write to stdout (even if I clearly told itso): $ 7z e -so -bd file.zip 7-Zip  9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18 p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,8 CPUs) Error: I won't write data and program's messages ...
The corresponding 7zip command is 7zip x -so that will extract your archive to the standard output stream.
sudo cp /etc/issue /etc/issue.tmp setterm -cursor off | sudo tee /etc/issue cat /etc/issue.tmp | sudo tee --append /etc/issue sudo rm /etc/issue.tmp sudo reboot
You can pass commands from one screen sessions to it's sub-screen session with Ctrl+a a (it send Ctrl+a to the sub-screen) For example: To detach the sub-screen: Ctrl+a a-d Go to the next screen: Ctrl+a a-n Go to the previous screen Ctrl+a a-p
Top 50 recent answers are included