Questions tagged [console]
A combination of display monitor and keyboard (or other device that allows input) for system monitoring and administration.
636
questions
431
votes
9
answers
896k
views
How to get the summarized sizes of directories and their subdirectories?
Let's say I want to get the size of each directory of a Linux file system. When I use ls -la I don't really get the summarized size of the folders.
If I use df I get the size of each mounted file ...
239
votes
6
answers
149k
views
What is the difference between shell, console, and terminal?
I'm confused with the terminology. What is the difference between shell, console, and terminal?
212
votes
9
answers
514k
views
Change default code page of Windows console to UTF-8
Currently I'm running Windows 7 x64 and usually I want all console tools to work with UTF-8 rather than with default code page 850.
Running chcp 65001 in the command prompt prior to use of any tools ...
210
votes
10
answers
47k
views
How to copy text from Console2?
I just started using Console2 as an alternative to cmd.exe
I can't figure out how to copy text from the console to the clipboard -- dragging over it with the mouse won't mark anything, and there is ...
204
votes
6
answers
483k
views
How to close a tmux session
I am using tmux to manage multiple terminal windows. Currently I have 2 windows open with multiple panes.
I know that I have to use the prefix (for me it is ctrl+a) to enter commands.
How can I ...
131
votes
15
answers
154k
views
How to force GPG to use console-mode pinentry to prompt for passwords?
Using gpg from a console-based environment such as ssh sessions fails because the GTK pinentry dialog cannot be shown in a SSH session.
I tried unset DISPLAY but it did not help. The GPG command line ...
94
votes
9
answers
506k
views
How can I change the input keyboard layout while in the console?
I need to change the layout of the keyboard while working in the console on Linux. I need to set up English layout as the default for the console. How can I do it?
93
votes
9
answers
341k
views
Run cURL commands from Windows console
Is there a way to install cURL in windows in order to run cURL commands from the command prompt?
71
votes
4
answers
70k
views
SIGTERM with a keyboard shortcut
I know that inside a terminal, Ctrl+C keyboard shortcut will send a SIGINT signal to the current foreground process. Is there a way to setup a keyboard shortcut for sending SIGTERM or even SIGKILL to ...
66
votes
9
answers
82k
views
Windows console with ANSI colors handling
Is there any console emulator for Windows that interprets ANSI coloring?
We use rspec and a part of our team use Windows and the special string for coloring are not very useful for them ;).
66
votes
6
answers
157k
views
How to open a terminal quickly from a file explorer at a folder in Windows 7?
This can be done easily in Ubuntu, just right click and open Terminal. It is very inconvenient to open cmd.exe then cd to the folder.
So, how do I open a terminal quickly from a file explorer at a ...
62
votes
9
answers
205k
views
How to stop kernel messages from flooding my console?
I'm using Centos 6, rsyslog logging. Console is flooded with kernel messages.
Klogd is not running (I'm using rsyslog)
Rsyslog config does not direct anything to the console
Even tried stopping ...
58
votes
7
answers
21k
views
Chrome: Hide Extension Errors in JavaScript Console
Is there a way to prevent extensions from showing up in the console of the developer tools window? It's annoying to be looking for JavaScript errors and have to ignore errors that are always there. I ...
55
votes
2
answers
33k
views
How can I grep with color in Mac OS X's terminal?
I recently found that on Mac OS X I can set this up in my shell ~/.profile so that when I use grep it will print the matches in color (white one red).
alias grep='GREP_COLOR="1;37;41" LANG=C grep --...
47
votes
4
answers
18k
views
Git Bash Here in Console2?
MSysGit installs a context menu item that opens a Git Bash prompt at the currently selected folder; however, this opens a cmd.exe window and I would like it to open in Console2 instead.
What ...
43
votes
8
answers
88k
views
Change Linux console screen blanking behavior
How do I change the screen blanking behavior on Linux virtual terminals?
For example, if I switch to a VT from X, login, and leave the system alone for 5 minutes or so, the screen will blank like a ...
41
votes
3
answers
62k
views
How to change console keymap in Linux?
I'd like to exchange Esc and CapsLock in console (not in X, and use xev), how can I do it?
My OS is Ubuntu.
41
votes
3
answers
66k
views
How do I change Notepad++'s console font?
How do I configure a fixed-size font for Notepad++'s console output?
40
votes
3
answers
57k
views
Change the DEFAULT console window font in Windows 10
How do I change the default console font in Windows 10?
I have already made the change to "Cmd.exe", but the problem is I also execute a lot of other console applications by directly executing them (...
36
votes
10
answers
238k
views
How can I open a new terminal window from a terminal in linux?
How can I open a new terminal window from a terminal in linux?
32
votes
4
answers
20k
views
interactive/visual merge tool for console?
I'm a big fan of meld - a visual diff and merge tool for Gnome. It shows two files (or directories) side-by-side and with their differences highlighted, and I can easily select which parts I want to ...
28
votes
4
answers
14k
views
How to set terminal size in Android adb shell?
When I connect to Android using "adb shell" and run certain commands such as "vim" or "mc", they are restricted to a "window" of 25x80 characters. Since I'm connecting from a desktop computer where ...
27
votes
6
answers
67k
views
Automatically executing commands when a command-prompt is opened
I am looking for a way to execute some console commands automatically when a command-prompt is opened in Windows, specifically to set some command aliases.
For example, when a command-prompt is ...
26
votes
4
answers
19k
views
How to change the Windows XP console font?
I have been using Cleartype and Vista fonts on Windows XP for quite a while now. I love the Consolas font for working with source code. I would love to have it as the font of my Windows console (...
25
votes
5
answers
37k
views
Console like Gnome Terminal for Windows [closed]
I'm looking for console like the Gnome Terminal for Windows to replace cmd.exe. I'd like to have tabs and easy copy&paste. Do you know a tool like that?
25
votes
4
answers
129k
views
7-Zip command line to extract a folder from an archive
I'm using the 7-Zip commandline to extract a ZIP archive called abc.zip which is an archive with a folder called 'zipper' with three text files in it (a.txt, b.txt, and c.txt).
My problem is when I ...
25
votes
3
answers
15k
views
(When) is CONHOST.EXE actually necessary?
Background
Last year I compiled a portable blog/web-server system that I can run from a flash-drive. It’s great and works wonderfully, especially on XP. The problem is that when it’s run in Windows 7,...
24
votes
4
answers
6k
views
SQLite with readline support on Ubuntu
I had the sqlite3 package installed on Ubuntu and there's no support for readline. That means there's no command history and those other nifty features readline gives you.
Is this a configuration or ...
24
votes
3
answers
16k
views
Change Linux Console's Default Monitor
Is there any way to specify which monitor the console is displayed on in Linux?
Details:
I have a 3 monitor setup with 2 video cards. When I boot the computer, the BIOS displays on the PCI graphics ...
23
votes
2
answers
11k
views
Colored copy of PuTTY window
I need to copy colored text from PuTTY window without losing color information. Console is in UTF-8 mode. What is the best method? Any parsable output will do.
22
votes
3
answers
15k
views
Is PowerShell a complete replacement for console/cmd?
Right now I'm using the Windows console (cmd.exe) for some easy tasks (as checking my ip configuration or running some applications). But now I heard that there is PowerShell which actually is way ...
22
votes
2
answers
28k
views
fine-grained sudoers configuration (allowed commandline arguments)
is there a straight-forward way to allow a user to run (for example)
/usr/bin/pacman -S -u
as root, without allowing him to run
/usr/bin/pacman -S -u some_package
?
The line
user ALL=(root) ...
21
votes
1
answer
5k
views
Why does the ">" command in a Windows console not redirect all messages to a file?
I am trying to build a Scala project with sbt, so I run a command:
sbt clean test > log.log
Which means that any messages that the sbt tool writes to the Windows console should be written to the "...
20
votes
5
answers
72k
views
What is the 'conhost.exe' process that shows up in Task Manager?
The process conhost.exe started showing up on Windows 7, and searching Google doesn't reveal an explanation of what this process is and why it shows up.
What is the conhost.exe process?
19
votes
11
answers
86k
views
Is there a way to get iTerm + Bash usability on Microsoft Windows?
I've been using Bash for years and I really like iTerm. Is there a way to get that level of console usability for Micosoft's Windows cmd?
By that I mean the sane tab completion, history (even if you ...
19
votes
5
answers
45k
views
How can I restore a remote desktop session to the local console?
After I am finished with a remote desktop connection, I'd like to be able to restore the remote desktop to the local console so that the user doesn't have to re-enter the password and log back in.
...
18
votes
4
answers
2k
views
Is there a windows console emulator? [closed]
Is there any way to make Windows console less ugly? I imagine there might be some 32 bit application that provides a nicer UI, but delegates all calls to cmd under the hood. Is there such an app?
For ...
18
votes
4
answers
25k
views
Is there a way to alter the colors used in TTY consoles on Linux?
By "alter colors", I mean something like change black from #000000 to #111111, and by "TTY console", I mean what you get when you do Ctrl+Alt+F1 from X11, not a terminal emulator like xterm or urxvt.
...
17
votes
2
answers
4k
views
How does ls know how to output its results?
While creating a bash script, I found that this code ls puts all files on one line:
pi@raspberrypi:~/ptlrestinterface$ ls
update.sh web.config MyApp.runtimeconfig.json
still ls | head -n1 ...
17
votes
3
answers
24k
views
Turn off monitor (energy saving) while in text console mode (in Linux)
How to configure Linux text console to automatically turn of the monitor after some time?
And by "text console" I mean that thing that you get on ctrl+alt+F[1-6], which is what you get whenever X11 ...
16
votes
6
answers
53k
views
Copying contents of current directory to a subdirectory
How can I use the Linux terminal to copy everything in current directory to a subdirectory?
16
votes
5
answers
29k
views
Which are the non-x text editors in Powershell?
Are there some editors like emacs, vi/vim, specifically for power shell, if so which are the best?
I will have to do some work on windows and I need some unix productivity - which means for me
shell ...
16
votes
1
answer
12k
views
How do I read the console output of a Windows GUI application?
If I remember correctly, Windows applications can be compiled as console or GUI applications. One of the main differences is that console applications get a console automatically, while GUI ...
15
votes
2
answers
6k
views
Why do I get different results from Mac's shasum than from other shasum calculators?
I'm entering:
appletree:~ somename$ shasum -a 512 <<< test
And the output is:
...
14
votes
3
answers
5k
views
How do I host a mintty shell inside of Console2?
I like to use Console2 for my Windows shell work, where I usually make it open a cygwin bash prompt.
I'd like to try out MinTTY (2), and want to host it within Console2 as well. If this is possible, ...
14
votes
1
answer
29k
views
Can I pipe/redirect a console application through netcat so it can be used remotely?
Is it possible to 'pipe' an instance of a console application through netcat, so netcat is listening for a new connection and redirects the stdin and stdout over the network connection.
13
votes
2
answers
30k
views
Where are the keymaps in Debian? (Using loadkeys to change keymap.)
From the actual console (e.g. Ctrl-Alt-F3), I'd like to use sudo loadkeys dvorak as in ubuntu. While that automagically works in Ubuntu, Debian wants me to locate a keymap file. I don't have the /...
13
votes
3
answers
21k
views
How to hide or minimize X11 window from console?
Window is full-screen and grabs everything.
New windows are appearing behind it.
I cannot just kill that application.
I'm logged in as root remotely through the SSH.
Expecting something like that:
...
13
votes
1
answer
25k
views
com.apple.launchd: com.apple.launchd.peruser error
It's been a couple of days I am reading these errors in the system log file.
25/11/11 21:31:43,373 com.apple.launchd: (com.apple.launchd.peruser.32697[92747]) getpwuid("32697") failed
25/11/11 21:31:...
12
votes
4
answers
12k
views
On Mac OS X how can I log to Console.app from the terminal?
I've seen the use of /dev/console in several scripts for Mac OSX but I'm not sure how it's being used. I checked Console.app and didn't see the results of my test command:
echo test > /dev/console
...