New answers tagged tty
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