A terminal is a hardware device used for entering data into and displaying information from a computer. Terminals were frequently used in the days of mainframe computers. Today, most operating systems offer text-based "terminal emulators", which replicate the functionality of a classical terminal, ...

learn more… | top users | synonyms

70
votes
4answers
10k views

htop isn't returning CPU or memory usage!?

I think that top is great application to monitor a Linux system. I really like it, but top doesn't look so good on Mac. I know that Mac have a system monitor to do it, but I prefer using a terminal. ...
1
vote
1answer
28 views

Terminal: How to list current directory while typing out a path

I'm not sure how to phrase this correctly but I want to know how in the terminal to do the equivalent of 'ls' when typing out a path. So for example i'm typing in: sudo "/Library/Application\ ...
30
votes
5answers
9k views

Can you disable the Ctrl-S (XOFF) keystroke in Putty?

I do a lot of ssh-ing, and periodically I hit Ctrl+S, which naturally sends an XOFF, and causes all kinds of problems (not to mention it takes a while for me to figure out what happened, then another ...
6
votes
7answers
56k views

How to access a network folder in Ubuntu using the terminal

I am new to Ubuntu(and Linux for that matter) and I am trying to access files using the terminal. The network folder is on my Desktop, but when I go to the Desktop folder via the terminal, the ...
8
votes
5answers
3k views

How to check if cygwin mintty/bash is run as administrator?

Problem Statement: What is the most elegant and robust way to test if Cygwin mintty bash session is "Run as adminstrator"? Why, specifically? I have typically several mintty terminals open when using ...
1
vote
1answer
21 views

What is the discard option in `stty -a`? It uses `^O`

In stty -a, there's an option for discard = ^0. I've googled around, and the closest documentation I get is from: http://www.tldp.org/HOWTO/Text-Terminal-HOWTO-17.html which says ^O flush (or ...
0
votes
1answer
10 views

Control A on Mac Terminal behaves unexpectedly while using python ipdb

When I'm using Python ipdb (and this only happens on one of my three macs), I type Ctrl-A to get to the beginning of the line (after running a few statements without issue). The cursor APPEARS to jump ...
27
votes
7answers
74k views

How can I use a bash like shell on windows

I use Linux and a Mac. I'll be teaching some command line stuff soon. What can I install on Windows to give me a terminal window most similar to a basic mac/linux bash shell. Would like to be able to ...
0
votes
4answers
754 views

Terminal font looks different (I think some application changed it)

The Terminal font on my computer (Windows 8) is messed up. I think some application I had from earlier changed it to look different. Looks fine in the CMD: Everywhere else, ugly: So, how do I ...
1
vote
1answer
20 views

tmux configuration stanzas based on Tmux version

This question is loosely related to this one. So I am using a range of Tmux versions between 1.5 and 2.2 on various operating systems (and Linux distros). My ~/.tmux.conf which had been tailored to ...
0
votes
2answers
5k views

Terminal fails with a “Could not create a new process and open a pseudo-tty.” message

Yesterday, I upgraded my Mac to Mac OS X 10.9 (Mavericks), and since then I couldn’t open the “Terminal,” each time I open a session, the following error is shown: [Could not create a new process ...
0
votes
0answers
3 views

XDG Desktop entry, don't close terminal window at process end

How can I specify, in an XDG desktop entry, that the terminal window should not close when the process ends? In an XDG desktop entry for an application (Type = Application), setting Terminal = true ...
2
votes
1answer
5k views

How to install ffmpeg on OS X? [duplicate]

You can get the binary here http://ffmpegmac.net/ How do I install said binary to use it as a commandline tool. I have a mac, with mavericks. If possible, it would be nice to install it without the ...
0
votes
2answers
4k views

What command lists the files created in a specific month and readable for the owner?

I am supposed to find the command that lists all the files that are created in September and readable for the owner. Also explain how the command works. I know I'm supposed to use ls -l and I ...
0
votes
1answer
12 views

Can I make text transparent in konsole?

I can make the background transparent, but can I adjust the transparency of the actual text? Do any other terminals support this?
1
vote
1answer
17 views

how to automatic save all terminal output to a log file?

I want to save all my terminal output to a log file automaticly, not like this $ ls -al > file.txt
0
votes
0answers
28 views

Terminal SSH command not working while connecting to another computer

After entering the command: ssh [username]@[ip address of remote computer] I got the error: ssh: connect to host 10.3.32.1 port 22: Connection refused Does anyone know what causes this?
0
votes
3answers
22 views

How would I create and manage a .txt file with Terminal

How would I create a .txt file, customize what it says, and open it. All with Terminal. [OSX Yosemite]
0
votes
1answer
12 views

Copy current terminal window

How do I open terminal in same directory I am in other terminal window? eg. have 2 terminals open one in /tmp (currently working in this) other ~, I wish to press magic shortcut to open new terminal ...
20
votes
6answers
12k views

How to mass prepend text to file names?

Lets say I have a directory full of .md files all named various things. Lets say I wanted to prepend "text" to the front of each file name. So for example: file a.md, b.md, and c.md would become test ...
1
vote
1answer
12 views

Can I use Y / N when I'm prompted with Did you mean: [command]?

I noticed that when you type a command slightly wrong it comes up with did you mean: command_name e.g. git staus git: 'staus' is not a git command. See 'git --help'. Did you mean this? ...
0
votes
0answers
17 views

Bash in Conemu is overlapping lines

When I start nano/vi or a program that normally clears the screen then I can still see the command line. That means that the terminal is not cleared. If I scroll with the arrow keys the lines ...
0
votes
0answers
28 views

What's exactly the default stdin, stdout and stderr in a typical Linux system?

I've heard in some occasions that the default stdin is the keyboard and that the default stdout and stderr is the screen, but I find that is pretty innacurate. If that were absolutely accurate I ...
0
votes
0answers
11 views

iTerm2 (OS X) change background image for current window from shell?

iTerm2 allows to set a background image or color, either for the current window or the default (used for all new windows). However, can I also set the current window's background image or color from ...
0
votes
2answers
40 views

'hhighlighter' wrapper script saying command not found [closed]

I have gotten the wrapper script 'hhighlighter' from https://github.com/paoloantinori/hhighlighter which colors anything you want in stdout. I followed the instructions about installing ack-grep, ...
2
votes
2answers
426 views

Bash: Created a ~ (Tilde) in a directory by accident

I'm a beginner to using bash on OSX, and I somehow created a ~ dir in a project subfolder. (It appears as a directory, rather than a symlink.) Is there a safe way to get rid of this ~ directory ...
42
votes
4answers
28k views

In vim, how can I quickly switch between tabs?

In gnome-terminal, I can just press Alt + (1, 2, 3, etc.) to switch to specific tabs. I can also use Ctrl + (PgUp / PgDn) to cycle through tabs (admittedly less convenient, but it can be remapped). ...
1
vote
1answer
291 views

Application to Display Quotes - Like Unix Fortune

I was wondering if anyone out there knows of any applications for Windows that are conceptually similar to the 'fortune' command in Unix systems for Windows. It would be nice if it allowed for ...
0
votes
0answers
26 views

Unlock Windows From OSX Terminal

What I am trying to achieve is to have a fully automated boot and login script to remotely start up and log in to my windows gaming host for steam in home streaming. So far I have installed wakeonlan ...
1
vote
2answers
1k views

What is the Mac OSX equivalent of free -m

I'm used to typing free -m in ubuntu to see how much memory is available, in MB. What's the equivalent command in Mac OSX?
3
votes
1answer
173 views

iTerm2 hotkey window activates non-hotkey windows

When I set iTerm2's hotkey mode on Mavericks, opening the hotkey window also brings any open non-hotkey terminal windows to the front. Is it possible to have iTerm bring focus only to the hotkey ...
1
vote
2answers
2k views

Change screen resolution when booting to terminal.(No X) -Ubuntu10.10-x64-Nvidia

When I boot without X or hit Ctrl+Alt+F1 I have very low screen resolution.(large font) Normal for the screen is 1920x1200. Can I change it? Does it have to do with Nvidia? Ubuntu10.10-x64-Nvidia
0
votes
1answer
28 views

cannot execute binary file python on mac local machine

version --python shows that I have version 2.7.10 installed on my mac, it's located in /System/Library/Frameworks/Python.framework/Versions/2.7 trying to execute python from terminal raised the error: ...
0
votes
2answers
22 views

Copying folder to multiple destinations in parallel

I have to transfer roughly 250gb of data from a Master Drive to lots of USB drives, all of identical size and brand. When I copy using the GUI in Mac OSX, it waits to copy all the files to one drive ...
1
vote
1answer
2k views

How to add indent in Python 3.4 interactive mode Terminator Linux?

I'm starting Python from basics. The Python 3.4 Tutorial has an example for interactive mode: >>> the_world_is_flat = True >>> if the_world_is_flat: ... print("Be careful not to ...
1
vote
0answers
66 views

Can tmux display pretty pane corners?

I'm in the process of picking up tmux, and I'm sure I'll get used to it, but this pointy edge is bothersome. Is there a way to make the corner flush, like this (fixed with gimp)? I know that the ...
0
votes
1answer
52 views

How to switch git user at terminal?

I am trying to push a project to a remote repository from the command line. From inside my local directory, I hit: $ git push and obtain the following error: remote: Permission to ...
8
votes
2answers
2k views

Make OS X Terminal commands I type BOLD

I'd like to make commands I've typed (input) into terminal stand out from all the output. For example: imac:~ buster$ chmod -R g-w myfolder imac:~ buster$ cd myfolder imac:myfolder buster$ ls -l ...
1
vote
0answers
23 views

Why won't gnupg be fooled by my pseudoterminal trick?

Gnupg requires many of its inputs to come literally from a terminal instead of just stdin. I sometimes can get around that with: pty-run: #!/bin/bash printf -v cmd '%q ' "$@" exec script --quiet ...
0
votes
2answers
34 views

Why the simplest Shell-Script isn't working?

I want hide the path in the Terminal and for that reason I typed: export PS1='> ' command which I found online with positive result. I thought to make it to a shell-script in order to not type ...
2
votes
1answer
94 views

Serial console login on OSX

Background I've got a Wyse WY-50 terminal here that, for various nolstagia and productivity reasons (really!), I'd like to connect to my Macbook and use as a login terminal. I'm using OSX 10.10 El ...
19
votes
5answers
24k views

Is there any option to use Amazon Cloud Drive from terminal (Linux)?

As you probably know, Amazon did not release any Cloud Drive client for Linux. Is there any other option to access ACD from terminal?
0
votes
1answer
34 views

Cannot execute Binary file on Mac OS

Here is a repo that I am trying to clone. https://bitbucket.org/sivareddyg/hindi-part-of-speech-tagger It says, we support UNIX based system. So I tried running "make tag" on OSX terminal. But it ...
2
votes
2answers
27 views

Set debian Linux Timezone via command line

Is there a way i can set the current timezone via the commandline/terminal? Its for a shelle script so im looking for some, hopefully, one liner like date -Z 'Europe/London' (Just an example), in ...
0
votes
0answers
10 views

Assigning terminal command to change a specific preference setting

Following the useful guide available through A Modern Story, I've installed Hadoop on Mac OS X for the learning purposes. I start Hadoop by typing hstart and hstop, which correspond to the following ...
18
votes
1answer
16k views

Using SCP or SFTP with my ssh config file?

Perhaps my google-foo is failing me here... I'd like to connect and upload a mysql dump file via terminal using SFTP or SCP to my remote server using my ssh config file. According to documentation ...
0
votes
3answers
2k views

How to use the mouse to scroll up/down in MacOS Yosemite Terminal when vi is open

In MacOS X, pre-Yosemite versions I could open vi in the Terminal window and scroll up and down the history of the Terminal. The vi lines in this case did not scroll. To scroll I used the ...
0
votes
0answers
8 views

Tmux incorrectly interpreting aixterm escape sequences

It has just occurred to me that tmux misinterprets aixterm escape sequences (in my PS1 prompt, I use the bold attribute for bolder text and aixterm sequences for brighter colors), if my TERM variable ...
3
votes
4answers
16k views

Is it possible to list file names starting with X or containing X?

As the title asks, is it possible to list files starting with X or containing X? ls is used to list files. Are there any options I can use so I can list the files beginning with or containing a ...
1
vote
1answer
7k views

How to use remote microphone on Remote Desktop

I wish to connect to a remote Windows 7 PC that has a microphone, and use that local microphone (on the destination PC) in recording applications. Unfortunately whenever I connect on Remote Desktop, ...