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

38
votes
5answers
11k views

Is there a shortcut to mkdir foo and immediately cd into it?

This is something I do frequently $ mkdir foo $ cd foo This works as a single command, but it's more keystrokes and saves no time. $ mkdir foo && cd foo Is there a shortcut for this? ...
1
vote
1answer
89 views

Terminal new window always shows -bash: Searching: command not found

When open terminal, it always shows -bash: Searching: command not found. It does not affect other functions, just each time, even though open a new terminal window, it still pops up at the top of the ...
2
votes
2answers
38 views

When typing in a command, my terminal will often times wrap around

So I'm having a really weird terminal problem that affects both physical login sessions as well as sessions over SSH. Basically, the terminal size is some number of columns. When printing stuff out, ...
1
vote
2answers
32 views

What was the SquashFS compression method?

I've got some SquashFS files, and I'd like to know how they were compressed so that I can have a rough idea of how they would perform when mounted. The only binaries provided by the squashfs-tools ...
3
votes
3answers
13k views

How to get IP address of all users on a network on Mac OS X

There is a similar question here, but it doesn’t answer some of my questions. The biggest problem is it says to fill in “MyOtherMac” with the name of the other computer found in the first step. The ...
1
vote
0answers
12 views

How does OS X's Terminal pass the new tab's dir to login or bash?

In OS X, you can add a shell to /etc/shells and set it as a user's default shell, such that when they open the terminal they are presented with that shell. In addition, When you have the option to ...
0
votes
0answers
5 views

OS X terminal.app selection color when window inactive

I am using a solarized color scheme in terminal.app. When I select text it looks great, and I am able to change the color of the selection in the preferences. But when I move focus to another ...
1
vote
1answer
26 views

Mouse tracking control codes for terminal using bash

I'm making a bash implementation of curses as an expermient for fun. I use infocmp to get the ANSI terminal codes. I'm a bit stuck now at how to enable mouse tracking in a cross-console way. I could ...
9
votes
6answers
4k views

How can I solve this error I get when I commit changes on an SVN repository from the Ubuntu terminal?

When I commit changes on a SVN repository, I always run into the following problem in the terminal in Ubuntu: Error reading /home/ssylee/.nano_history: Permission denied Any ideas how to solve it?
2
votes
0answers
33 views

Bug with resizing panes in tmux when using ZSH

I am using Tmux with ZSH and have a problem when trying to resize panels. I am currently using these bindings to resize panels as I work: unbind-key M-j ; bind-key -n M-j resize-pane -D 1 ...
2
votes
1answer
10 views

Is there a way for me to manage my iCloud settings from the terminal?

I am running OS X Yosemite 10.10.3 and would like to administer my iCloud settings (login, which services - Mail, Calendar, Notes - should be used, etc.) Is there a way for me to manage this via the ...
0
votes
2answers
23 views

Open a Command in a New Instance of Various Terminal Emulators

I am trying to open a terminal emulator while simultaneously passing a compound command to it. What are commands for doing this (two versions: where the terminal stays open after completing or where ...
1
vote
1answer
16 views

Color scheme(s) in Vim not properly working

On Archlinux, using Vim 7.4 (installed with pacman), I tried to use the lucius color scheme. However, the moment I turned it on, all color went away. This happened in the Xfce Terminal emulator under ...
0
votes
1answer
178 views

Solarized Dark + Gnome Terminal + Vim + Vim-Airline

I installed the solarized dark theme for gnome terminal using https://github.com/Anthony25/gnome-terminal-colors-solarized and then with Vundle installed ...
0
votes
2answers
14 views

Checking for changes on Linux live OS's

I am a novice to the terminal of linux live OS's (eg Kali Linux). Please advise what 1) in built programs (e.g. Syslog...), 2) Commands in the Terminal (eg ls, ps, md5sum, ...) one can use for ...
2
votes
1answer
3k views

Enable SSH access to my DD-WRT router TP LINK WR1043ND

I would like to copy to the tmp directory on my router, and do not know how to enable SSH to access it. I am connected to it via LAN and am running OSX Snow Leopard 10.5.6.
0
votes
0answers
18 views

Mac OS X Terminal, shows special characters like slash, space etc as strange character codes after using localedef

I have recently used localedef command to add support for the multiple locales. After doing that I noticed on my terminal for every space, backslash, forward slash etc… it is instead showing UTF code ...
2
votes
2answers
42 views

SSH to access remote screen without X

I need to access a remote computer (which is attached to a screen), using SSH - the problem is that the programs I start via SSH need to be shown on the remote screen (tail, htop, slurm, ...) The ...
0
votes
0answers
19 views

Enable tab autocomplete in PhpStorm terminal on mac?

I am using PhpStorm for a pretty big project. We use Git for our versioning control. Needless to say, this leads to me switching back and forth all day between branches. I'm using the terminal window ...
14
votes
4answers
30k 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
1answer
17 views

How to switch between command-line and GUI in VM on a Mac?

I have installed CentOS 7.1 in VMware Fusion of my Mac. I logged into the terminal (default runlevel 3) and started the GUI using the command "startx". I want to switch back to the terminal. ...
1
vote
2answers
38 views

Is there a folder-specific .bashrc or .bash_profile?

Is it possible to have a bash script (like a .bashrc or .bash_profile, basically) that is executed only upon cd’ing into a specific folder?
1
vote
1answer
2k views

How to permanently append a directory to PYTHON PATH on Mac

I tried the two common methods: import sys sys.path.append('foo/bar') AND export PYTHONPATH=$PYTHONPATH:foo/bar The first one terminates the appendage once interpreter is exited. The second ...
0
votes
1answer
49 views

Resize terminal Emacs window to fit when resuming a Screen session from larger display in Ubuntu

Whenever I start a GNU screen session running GNU emacs (nw, so in terminal) on my desktop with a large monitor, then resume it on my laptop, emacs still thinks it's on a large monitor. This means as ...
0
votes
2answers
32 views

How to Set my Mac $PATH back the way it was before in Mac OS X

I’m just getting started with “Terminal,” the other day I might have messed something up with my /usr/local/bin. When executing echo $PATH it returns me with: ...
1
vote
2answers
24 views

command line terminal in mac os x shows wrong version of Java

I have installed Java 1.7 on my mac at /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home In Command line I set the java version as export ...
0
votes
0answers
29 views

Change OS X Internet Sharing Wi-Fi hotspot password from terminal

I have Mac and use it as a hotspot. Is there any way I can change the hotspot's password from terminal?
0
votes
0answers
15 views

POSIX and ACL permissions Mac Server

I have a mac mini server and have a script run at login for network users that mounts a shared drive on the mac server. When they mount up, I create a folder with their name as the folder name. What ...
0
votes
1answer
2k views

Mac Shows Java 6 in Terminal After Installing Java 7

I am trying to run a server that requires Java 7 using terminal. After installing Java 7, typing java -version in terminal still shows Java 6. Previously, I would use the Java Preferences ...
0
votes
0answers
23 views

Unable to start libre office from terminal

I need to start libre offices impress via SSH on various raspberry pies, each displaying a set of slides on its own screen. Now my problem is that, when I run loimpress --show file.odp it states ...
0
votes
1answer
39 views

Ctrl+Shift+C/V does not work Debian 8 Jessie

I’ve just installed Debian 8 Jessie with Cinnamon 2.2 and launched gnome-terminal. But I can’t copy/paste text using keyboard: pressing ctrl+shift+C/V only causes language switch. What can I do to fix ...
5
votes
1answer
656 views

Enabling Italics, Underline on Emacs, Xterm and Putty

I'm using a Ubuntu (11.04 Server Edition) virtual machine as my development environment. It doesn't have a desktop environment since I don't think its necessary and I want to keep it lightweight. I'm ...
0
votes
1answer
18 views

Launching “emacs -nw” with 256color on a new xfce4-terminal

I have a litle question about launching emacs using this command xfce4-terminal -e "emacs -nw" I'm using TERM=xterm-256color in my .bashrc but it has effect only when i first launch a new ...
12
votes
5answers
9k views

SSH works in putty but not terminal

When I try to ssh this in a terminal: ssh username@sub.domain.com I get the following error: Connection closed by 69.163.227.82 When I use putty, I am able to connect to the server. Why is this ...
0
votes
1answer
28 views

How to enter into process running on gdb?

So I was trying to debug a program that runs on two node. I use yod as task launcher. yod -hosts node01,node02 ./dist_task -nl 2 The program is stuck. So I wanted to use the gdb like this yod ...
0
votes
1answer
28 views

How to find the name of the user that has been logged in the longest?

I need to determine the user who has been logged in to the Linux server for the longest time. Can't come up with the right commando. Any help is appreciated.
0
votes
1answer
21 views

FreeBSD bash history: can't access last symbol of command

There's an old server I am working with, runs modified FreeBSD 6.1 with bash 2.05b.0(1)-release. On 'up' key press the last command from history pops up - but I can't access the last symbol, like the ...
0
votes
1answer
6k views

How to make PuTTY's font automatically change color (while connected to a Linux server) as I did with Windows cmd.exe using a background batch script?

I was able to create a Windows Command Prompt that automatically changes its text color on a white background every ~1.5 seconds, thanks to the help of @dbenham and @Woody. I also use PuTTY every day, ...
0
votes
1answer
22 views

Controlling tty / terminal output from other session / shell

We are told that a tty can control at most one session and furthermore that ttys can be controlled not to allow background process groups within its controlled session to write or read from it, the ...
0
votes
1answer
16 views

separate mappings for TAB and C-i in .inputrc

For what I have tried, "TAB" and "C-i" in .inputrc seems to mean the same thing, whatever I bind to one is bound to the other. I know that originally, it was the same thing and that this behavior is ...
0
votes
2answers
2k 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
1answer
19 views

Cat and/or echo several things into one file on “one command line”

I know we can do things like this: stat -f%z mybigfile > RELEASENOTES.txt and echo "bytes" >> RELEASENOTES.txt Now RELEASENOTES.txt will look like this: 47556304 bytes How can I get ...
0
votes
1answer
24 views

How to show path in shell, but only a fixed number from pwd?

Basically, I want to display something like: me@host.serv.com:../projects/1234/source$ cd cpp me@host.serv.com:../1234/source/cpp$ instead of: ...
5
votes
1answer
84 views

Terminal error messages are not in English [duplicate]

I have Ubuntu 15.04 installed on my machine. Currently terminal error messages are not in English (actually they are in Russian). For example, $ mmmm mmmm: команда не найдена I want to see $ ...
0
votes
1answer
22 views

Assigning keyboard shortcut to OSX's “New Terminal at Folder” service does not work

I often use right click > Services > New Terminal at Folder to do terminal commands at particular place so now I wanted to assign a keyboard shortcut to it. However, no matter what shortcut I ...
0
votes
0answers
9 views

Terminal keeps on slowing down or freezing OS X

For some reason, the terminal app started to work very slowly and freeze lately. This has been an issue for a week or so. I am using it in a fancy transparent/blurred profile, but I can check from ...
0
votes
1answer
30 views

Why keys like Esc, Ctrl, Shift and Alt does not work in SSH session from my Windows PC?

I am working on Windows PC. If I open a terminal (with putty or ssh) to a linux (CentOS) maschine, I can't get keys like Esc, Ctrl, Shift and Alt to work. I need them for Midnight Commander (currently ...
14
votes
3answers
15k views

Mac OSX: conventional places where binary files should live

I'm only vaguely familiar with Unix and the filesystem convention for Macs, so sorry if this is a dumb/easy question. I've downloaded an application that is a command-line application, and want to ...
0
votes
2answers
342 views

How can I launch Safari Terminal on Windows 7

I want to execute some commands for my Safari web browser mainly to disable auto-refresh. And it is seems that the only way to do so, is to use the terminal to write commands. But I am using windows 7 ...
1
vote
2answers
3k views

Mac Terminal showing bash instead of my username

This makes it hard to know what directory I am in. I installed a version of python for school and now it says -bash-3.2$ instead of MyMacbook: ~$. I'm sure this is really simple, but I know nothing ...