The Linux Terminal (also called console) is a wrapper program which sends user input to the shell and outputs the result after the command have been processed.
Questions tagged [linux-terminal]
114 questions
85
votes
2 answers
How to prevent a command in the zshell from being saved into history?
In Bash I know putting a space before a command prevents it from being kept in the history, what is the equivalent for the zshell?
bneil
- 2,137
65
votes
3 answers
How to show output on terminal and save to a file at the same time?
I am using:
user@unknown:~$ sudo command -option > log
to save the results of "command" to the file "log", but I'd like to also get the result on the terminal, is this possible?
I am using ubuntu 10.04 lts.
fazpas
- 1,643
51
votes
4 answers
bash save history without exit
in linux ubuntu bash terminal. is there any way to save bash history without writing exit?
i've set the config to
"HISTCONTROL=erasedups"
which in my opinion works better than ignoredups.
anyways for some reason it wont save the last few commands in…
ColacX
- 1,571
48
votes
4 answers
How to run programs from a linux terminal without blocking the terminal?
When I start a program from a terminal I can't use that terminal instance again until I close the program.
Is there a way to execute a program/application from a terminal without blocking the terminal until the program ends?
ueaiox
- 483
37
votes
14 answers
Google Search from Linux Terminal
I saw a Google console app someone wrote a while back, but it was actually a website emulating a console.
What I'm after is a shortcut or Linux terminal app which I can use to quickly search Google.
Ideally, it will show the top 10 search results…
Dean Rather
- 2,717
34
votes
1 answer
Keep Session with Terminator
I am using Terminator for multiple Terminal Sessions. I know I can start with custom Session layout but most of the time I have changing Session settings.
Is it possible to save the current Session with terminator? For example if I shutdown the PC…
Denny Mueller
- 449
- 1
- 5
- 7
33
votes
4 answers
Replace OS X's shell commands with the linux versions?
The commands available by default in the Terminal in OS X, don't seem to behave like their linux versions. How can I replace all of them with the actual GNU linux commands?
For example sed -i requires an annoyingly additional "" argument. Also, it…
TheOne
- 1,405
31
votes
3 answers
How do you output a QR code to the linux cli terminal for scanning?
I want to be able to output a QR code to the ubuntu cli terminal where I can scan with my phone. I have a configuration file I want to convert to a QR code so I can scan it vs having to transfer it over a usb drive. Many of the google results only…
Patoshi パトシ
- 3,219
30
votes
4 answers
How do I copy a link in Lynx?
I'd like to copy the current link to the system's clipboard or write it to a file.
If it isn't possible, I guess I'd have to settle with opening it in an external browser (which I was avoiding in the first place, thus using Lynx), and then copying…
Nikki Erwin Ramirez
- 2,396
20
votes
6 answers
Using Ctrl or Alt AND backspace to delete last word in Bash
In Linux I'm used to press Ctrl-Backspace to delete the last word but I don't know how to do it in Bash terminal.
In OS X I use Alt-Backspace to do the same thing.
Is there any way of making Bash recognize the Ctrl- or Alt-Backspace key combination…
licorna
- 541
18
votes
4 answers
How to switch to non-graphical view in ubuntu?
I've recently installed Ubuntu. It's graphical; how can I switch to command-line mode so that everything is to be typed, like DOS?
PHP
17
votes
7 answers
How to turn on/off leds by terminal?
I would like turn on/turn off some of my leds running a command on linux.
I use Ubuntu 12.04 LTS.
I tried
xset led named "Scroll Lock"
xset led named "Num Lock"
xset led 2 (this is the number of Scroll Lock as `xset q` says)
xset led…
GarouDan
- 605
16
votes
3 answers
Script or launcher to setup multiple terminal tabs in different locations
I have already studied this some time ago, but did not find any solution that would open terminal tabs, run some commands and then allow me to continue using those terminal tabs. All the ways I found launching terminal tabs from command line would…
user232548
- 261
10
votes
4 answers
Can't open a terminal in Ubuntu 22.04, running in VirtualBox 7.0 on a Windows 11 host machine
I just installed VirtualBox 7.0 and made a new virtual Ubuntu 22.04.1 machine on my Windows 11 PC. I can run programs like libreoffice, etc, but I cannot open a terminal.
I've tried to activate the "Windows Hypervisor Platform" feature, but still no…
drC1Ron
- 205
9
votes
2 answers
rxvt - how to clear scrollback
I was hoping this would be an easy one but I don't see it in the man page and couldn't find it googling. Is there a keyboard shortcut or even a console command I can use to clear the scrolback buffer in rxvt/urxvt? Ctrl-l clears the current screen…
henry
- 193