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

3
votes
1answer
4k views

Remove file extension in OS X using Terminal

Problem: I have some 200+ files named something in line with "DSC01852.JPG.jpg". I would like to remove the file extension so the result becomes "DSC01852.JPG". Any suggestions? I looked at the mv ...
3
votes
1answer
709 views

Can I make ssh-agent wait until I use ssh to prompt for a password?

I have ssh-agent set up to automatically start and prompt when I open a terminal window, as is explained here. It gets somewhat annoying though since many times when I open a shell I don't plan on ...
3
votes
4answers
2k views

How do I revert to having sudo ask for a password again?

I accidentally made a mistake and made my sudo commands passwordless on my Mac. How can I get it back to default?
3
votes
1answer
911 views

How the computer could be used by two users at the same time

Running windows 7 64, Is there any application that allows me to connect an additional keeyboard and mice and monitor, so that this can be used by other user at the samee time while I use the main ...
3
votes
1answer
924 views

How to change background/foreground color on “all” existing terminals

I am looking for a command line way to change the background & foreground colors of all open terminal (and also for any new terminal, the new settings should be applied). Using something like ...
3
votes
2answers
4k views

Lost permission to use sudo commands

I changed /etc folder permission to 711. After doing that, I lost the permission to use sudo commands. Any way to change the folder permissions back? What I have tried so far: 1) use su -, ...
3
votes
1answer
12k views

How to find the process that is running on a given port in OSX

I want to run a web application on my local OSX Lion machine. When I go to http://localhost:8080 there is already a process running so I get the following message: Status Code: 404 Exception: ...
2
votes
2answers
2k views

How to set more lines to scroll backwards, in text mode?

I want to scroll back 10000+ lines in text mode linux terminal. As there is an unlimit option in gnome-terminal, so I guess if this is also possible in text mode?
2
votes
2answers
672 views

Remote sharing of a terminal

At work, I fire-up a terminal and start executing some huge process(which may take couple of hours to complete) and leave office. When I reach home, I want to check what is happening to the process(...
2
votes
0answers
504 views

Resume term after ssh disconnect without multiplexer (screen/tmux)

Screen and tmux (like emacs) are fancy feature rich terminal multiplexers designed to let you efficiently manage terminals as if it was 1985 but they just complicate the simple task of resuming an ssh ...
2
votes
5answers
3k views

Where does the name in the shell prompt come from?

When I open the terminal on my Mac, this is what it shows: australia:~ rod$ I don't live in Australia, don't have anything to do with Australia, nor have ever setup terminal as Australia. Where ...
2
votes
1answer
1k views

Using SASS on my Debian server

Ok here's a quick question. I have a debian server with sass (driven by ruby) installed. To compile a sass file to a css file, yo do: sass --watch style.scss:style.css If I run this on my server ...
2
votes
4answers
2k views

Alternatives to cd/ls for command line navigation?

I generally work a fair amount from the command line in order to launch vim, git, ssh and so on. However, I find the Finder's columnar view more natural for browsing through my files. Unfortunately, ...
2
votes
2answers
8k views

Terminal emulator with split panes for Mac OSX

I'm looking for a terminal emulator on Mac OSX with a specific feature: to be able to split the console window into multiple panes. It's a great feature of Terminator for gnome, I think this image ...
2
votes
2answers
1k views

Remove bash startup behaviour (mac user)

When I start the terminal (which uses bash) a echoed message appears several times right before the message "You have mail." and it is added by someone that has used my computer. It also happens when ...
1
vote
2answers
654 views

Changing default terminal of Codeblocks 13.12 in Windows

I seem to be at a dead end here. I cannot change the terminal for Codeblocks on Windows, although it is a cakewalk in Linux. The option is greyed out. Running as admin doesn't work also. The box ...
1
vote
3answers
576 views

Incorrect hostname in OS X?

I'm not sure why the hostname is now jessica-s-phone. I am on a public wifi, and some googling revealed that the hostname is set by a DNS, so is it possible my iTerm chose someones phone as the host?
1
vote
1answer
296 views

Why there are 11 tabstops on a 80-column console?

You would assume that since each tab moves forward 8 columns by default, a 80-column console would have exactly 10 tab-stops. This can be disproved: $ printf "1\t2\t3\t4\t5\t6\t7\t8\t9\t0\ta" One ...
1
vote
1answer
2k views

Append stdout to file from terminal?

I know using command > file will write the stdout of command to file, but is there a similar method to append to file?
1
vote
1answer
221 views

Screen fails to release pty

On my linux box, when using screen I can open, read and write to a pseudo terminal with screen. After closing it (C-a k y) I can't connect to it again, without restarting socat, which provides the ...
0
votes
3answers
883 views

How do I remotely execute scripts on multiple servers, mix output

Hi I'm looking for a piece of software or some sort of technique that would enable me to do following in one terminal window: Take as input a list of ssh-enabled machines with login, password and ...
0
votes
2answers
1k views

Strange characters in OSX Terminal

I am using Terminal in OSX to Git files to and from remote repositories. Suddenly I notice that some Git commands and status responses are returned and contain strange characters in them, such as the ...
0
votes
1answer
1k views

Unix: How to one-way-sync directory with FTP directory

Is there a good command I can run from the Terminal that will one-way sync a directory with an FTP directory in a smart way? I'd like it to for example delete all files on the FTP that no longer ...
0
votes
1answer
161 views

What 016 017 in bash prompt, how can I make it correct in Terminal

I saw a beautiful bash prompt here PS1="\n\[\e[30;1m\]\[\016\]l\[\017\](\[\e[34;1m\]\u@\h\[\e[30;1m\])-(\[\e[34;1m\]\j\[\e[30;1m\])-(\[\e[34;1m\]\@ \d\[\e[30;1m\])->\[\e[30;1m\]\n\[\016\]m\[\017\]-...
8
votes
2answers
2k views

how to load byobu automatically when terminal started?

I'm using Lubuntu 13.10, and I want to load byobu automatically when I open terminal. I found byobu very flexible and reliable tool and want to use every time when I have to use terminal. I couldn't ...
7
votes
2answers
2k views

Mac OSX: Cannot color broken symlinks

On my linux machine, you can tell intact symlinks from broken ones, because broken ones are colored red. I've tried to set this up on my mac by adding some configurations to PSCOLORS in my ....
5
votes
3answers
3k views

Mac OS X Terminal - Remap Command Keys

Is there a way to remap command keys just for Terminal.app in Mac OS X? I know that I can remap keys at the system level, but I'd like a way to do it just for the Terminal app. Ideally I'd like ...
5
votes
1answer
8k views

Mac OS X Terminal - where does the prompt name come from

Where does the word at the beggining of the prompt on my MacBook Pro terminal come from? At the moment, it looks like this Last login: Fri Oct 14 12:55:34 on ttys000 sherrythinkpad:~ ConfusedNoob$ ...
5
votes
2answers
1k views

Change directory cd to another terminal's cwd

I would like to create a command like cd - (lets call it cdp) that will change directories to the last changed-to directory from another terminal window similar to the option to open a new terminal in ...
5
votes
4answers
4k views

Problem with arrow keys in Midnight Commander under Mac OS X after update to 10.6.3

After updating Mac OS X to 10.6.3 the arrow keys do not work in MC anymore - instead of moving the cursor it types, for instance, B for down key, C for right key. Although, if I quit MC and try it in ...
4
votes
1answer
1k views

Why does my .bashrc get read when I run noninteractive commands over ssh

I've prepended each of my bash config files (~/.bashrc,~/.bash_profile,~/.profile) with echo NAME_OF_FILE, i.e. I get '.bashrc' when I source in ~/.bashrc. What baffles me is why I get and ...
4
votes
3answers
8k views

What is the default terminal (shell) for Xubuntu?

What is the default terminal (shell) for Xubuntu? Does Xubuntu use the same shell as Ubuntu?
3
votes
2answers
113 views

Permission denied message everytime I start the Terminal

Everytime I start my Terminal I get this error message: -bash: /Users/myusername/.profile: Permission denied I still can use the Terminal as usual though. It probably came after I installed ...
3
votes
1answer
361 views

Distinguishing local and remote access in shell (TERM-related)

My default TERM is xterm-color. I would like it to be xterm-256color when I am working on my machine locally, but if I ssh to it I want to have it be xterm-color. How do I distinguish these two cases?
3
votes
4answers
12k views

“command not found” when running a shell script. What did I break?

I'm on OSX Snow Leopard. Here's the full contents of grr.sh: #!/bin/sh echo wow When I try to run it from terminal: $ grr.sh -bash: grr.sh: command not found $ /bin/sh grr.sh wow $ sh grr.sh wow ...
3
votes
4answers
6k views

How do I automatically close Terminal.app on exit in OS X Lion?

I've recently acquired a new Mac with OS X Lion, and I'm tuning it for my needs. I was trying to configure autoclose on Terminal using its preferences (as I've done with Tiger and Snow Leopard) but ...
3
votes
5answers
2k views

How to run a bash script outside of a terminal?

Hey All, wrote this script to confuse my girlfriend when she is using my computer. The only trouble is that if the terminal gets closed the script stops to execute. It currently executes in the ...
2
votes
6answers
2k views

Better terminal program for Snow Leopard (OS X)

Does anybody know a better terminal program for snow leopard which allows for text editing? (i.e. jumping to a specific character without having to use the arrows to go one by one) etc..? thanks! ...
2
votes
1answer
939 views

Dialog display with blank field assigned to variable in Mac Terminal?

I want to make a display box that has a text box that the user can enter a number into that will later be assigned to a variable. How would I do this?
2
votes
2answers
394 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?
2
votes
1answer
169 views

how to make less pager respond to scroll wheel and not clear the screen

I know about answers like how-to-make-mouse-wheel-scroll-the-less-pager-using-bash-and-gnome-terminal, which is to remove the -X flag from the $LESS environment variable. But I would like to do both ...
2
votes
2answers
1k views

How to copy/paste tab characters via the Clipboard into terminal session on gnome / ubuntu

How do i copy text that includes tab characters from a text editor, let's say gedit into a terminal session on ubuntu/gnome? I am on ubuntu 12.0.4 using gnome classic. UPDATE This same issue ...
1
vote
1answer
465 views

How to use curl behind a McAfee Web Gateway?

curl seems to get some URLs just fine, while others get blocked with a response that indicates authentication is required and a valid cookie is missing. I can download the same URL in Chrome. No ...
1
vote
3answers
2k views

Mac OS X Terminal: How can I make my pico editor syntax highlight?

I recently changed my Mac OS X Terminal colors. How can I enable syntax highlighting for pico? Or any editor in general?
1
vote
2answers
475 views

How to disable EMACS - Prelude colors? (terminal)

I've used PRELUDE to work better in terminal, but I'd love to work with my default Terminal theme(colors). Zenburn-theme comes default with Prelude but It just work great the first time i run emacs ...
1
vote
4answers
2k views

Where do files and directories go when I run 'rm -rf folder_or_file_name' in Ubuntu 10.04?

When I delete folders or files in the Nautilus GUI, those folders/files go to Trash but where do folders/files go when I run rm -rf folder_or_file_name in terminal in Ubuntu 10.04?
1
vote
0answers
274 views

gnome-terminal new tab within exact same path

I'm using gnome-terminal and open multiple tabs for the same path. The behavior of gnome-terminal is to change to the real (canonical) path rather than the exact original path. E.g. a new tab opened ...
1
vote
1answer
824 views

Mac OSX Mavericks - ZSH can't 'source ~/.zshrc', too many open files

I can't source any changes to my .zshrc (or my .bash_profile for that matter), because I get this error when I try: /Users/ME/.zshrc:source:100: too many open files: /Users/ME/.zshrc I've tried ...
0
votes
2answers
637 views

How to permanently reset my $PATH?

I was trying to add something to $PATH and it went totally wrong. I now can't run any commands such as ls. I've looked at this answer (http://apple.stackexchange.com/questions/11745/reset-your-path-...
0
votes
1answer
823 views

Downloading pdf from ftp is corrupting it

I am trying to do something very simple. I have a PDF sitting in my root (I'm on a mac). So, first, I want to upload the pdf from the terminal: curl -T myPDF.pdf ftp://user:password@domain.com/ ...