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

10
votes
3answers
32k views

How do I partition and mount a 3TB Hard Disk using the terminal?

I have a 3TB Hard disk which I wish to mount as a single partition under Ubuntu 11.10 server Because it is over 2TB I know there are some issues with this. I'm unsure of what I need to do to make ...
1
vote
2answers
1k views

Arch Linux: colors from terminal in bash script?

In addition to ArchLinux - yaourt: save updatelog? With tee I am able to get the output at a file and at the terminal at the same time. But when I execute yaourt -Syu | tee yaourt.log in a bash file ...
0
votes
1answer
207 views

Colour-code terminal windows by host

I regularly work on different hosts using ssh, and I sometimes get confused about which computer I'm running commands on. I've occasionally come close to issuing halt(8) commands to the wrong host. ...
4
votes
2answers
2k views

How do you move to the next or previous word in a Terminal in Mac OS?

I usually use Linux, no expert at all (very far from it) but I use it daily. Sometimes I find myself using (someone else's) Mac and typing commands into a Terminal. In Linux, I can use Ctrl+Left and ...
6
votes
4answers
10k views

How do I write code of more than 1 line in the Python interpreter?

I have a problem coding Python in terminal. I'm just learning basics so I have no need to create .py files. In terminal I can run one line of code in the Python interpreter, but how do I write more ...
1
vote
2answers
5k views

Running MATLAB from Mac OSX terminal

I'd love to run matlab from the terminal on my Macbook (running Lion), forgoing the standalone matlab interface. All the information I've found online suggests that the command is simply something ...
2
votes
1answer
407 views

“Large Type” function from OS X command line

Is there a way to call this function: 'Large Type' in Mac like in Address Book application from the command line?
1
vote
2answers
413 views

How do I work with an untypeable keyboard character?

I am in the process of making a bash script to scrape a weather.com to get the weather report. I need to process a line of text that has an unusual character. Here is the text: 30°FHigh 35°High ...
0
votes
2answers
309 views

How do I input Terminal commands when running a rails server?

I just started using Rails a few days ago, and I'm having trouble with terminal commands. The textbook I am reading keeps telling me to run Terminal commands while having a Rails server running. This ...
2
votes
1answer
530 views

Is it possible to change linux terminal color whenever I am connected (ssh) to another machine

I would like to have my terminal colors changed whenever I am connected (through ssh) to another linux machine. This way, I know that I am putting commands in a remote computer just by looking at ...
1
vote
1answer
410 views

Copying files across computers in different networks using scp Mac Lion

I forgot how to do this and I found this other StackOverflow post about it but now I'm getting this error: ssh: connect to host xx.xx.xx.xx port 22: Permission denied lost connection I am ...
1
vote
2answers
514 views

Script for toggling OS X “Show Hidden Files” in Terminal

Is there a way to toggle the hidden files visibility on/off with a terminal script? In pseudocode: if can view hidden files set com.apple.Finder AppleShowAllFiles false else set ...
12
votes
3answers
4k views

Is it possible to view images in a terminal?

I have ssh access to my web server. I have some image files there and I would like to see a preview of. Is there a tool that will help me? Is there a curses-based viewer that will approximate the ...
1
vote
2answers
5k views

Use tar and gz to create archive in Ubuntu Terminal

I want to archive 3 folders, given their names in Ubuntu command prompt. When I use tar -c abc tt zz -> it will do nothing.
1
vote
0answers
220 views

Creating a shortcut in launcher to run a terminal command with more than one parameter as argument

How do you create a shortcut in launcher that lets you run a terminal command using more than one variable? For example, how do you create a launcher shortcut that will prompt you for varA and varB ...
0
votes
1answer
149 views

How to reconnect a screen session every time terminal is fired?

I wrote this command to reconnect an active screen session when Terminator is opened. It works find but there has got to be a better way to to it This is goes in the Terminator config file (note ...
0
votes
1answer
412 views

How do I set up Debian 6.0.3 to work with serial terminal?

My problem is that most guides on the Internet I've found explain how to enable serial terminal on GRUB 1 and it appears that they moved to GRUB 2 on Debian. I'm running Debian inside VMware and have ...
1
vote
1answer
1k views

OS X Terminal Ignoring SOCKS Proxy Setup

Previously I've used an SSH tunnel: ssh -D 1234 user@remoteHost As a system wide proxy in OS X by going to System Preferences -> Network -> Advanced -> Proxies -> Tick SOCKS Proxy and enter ...
1
vote
1answer
487 views

command in multiple lines

Here is an example code from a book I need to type on terminal > db.users.update( {username: "smith"}, { $set: {favorites: { cities: ["Chicago", "Cheyenne"], movies: ["Casablanca", ...
0
votes
2answers
6k views

connect Internet via Terminal linux

I want to write a script-Ubuntu_OS- would connect to a wireless Internet so I need to know how to connect Internet via terminal in Linux. I tried many suggestions on the Internet but nothing at all
4
votes
1answer
1k views

How to delete Safari cookies from OS 10.7.2 terminal?

I would like to delete all Safari cookies from terminal on Mac OS 10.7.2. I tried to delete ~/Library/Cookie/Cookies.binarycookies (this is the only file in ~/Library/Cookie), but it didn't help. ...
0
votes
3answers
991 views

How do you copy+paste text from the terminal to a web browser, and vice versa?

I was just wondering if there's a simple way to do this, or whether it's completely dependent on the terminal you use. If that's the case, then is there a standard that most terminals go by? Right ...
2
votes
2answers
2k views

Alternative to TinyTERM Terminal Emulator

I work for a company that has been using the TinyTERM Terminal Emulator for at least 20 years now. Here is a link to the program's description: ...
2
votes
1answer
50 views

Is there a tab-enabled CLI for Windows?

I'm looking for a terminal for Windows that supports tabs, maybe splitting and I'd love to be able to autocomplete and double tap the tab key to list files like in Linux terminals. Is there such a ...
3
votes
3answers
4k views

How to connect to a Windows PC from a Mac OS X terminal

I have some Windows PCs on my network. I have Mac OS X. I try to access some Windows PCs in the network to read and write files. In OS X Finder, I see the computer_name and I can connect as Guest. But ...
4
votes
2answers
5k views

How to set up a shortcut to a directory in Mac OS X Terminal?

What I'd like to be able to do is when I'm in Terminal is to type: cd myFolderShortcut And for it to go straight to a directory I have a set up with this alias. Is this possible? I did do a google ...
0
votes
1answer
354 views

Mac OS X Terminal: I repeatedly get error message “-bash: .DS_Store: command not found” in the terminal

Yesterday I was trying to get .DS_Store files to be globally ignored by git. I must have entered some command incorrectly because now every time I launch terminal or use the cd command, I get six ...
3
votes
0answers
1k views

256-colour terminal

I've been battling it out with this 256-colour terminal malarkey and I just can't get decent colour displays in a terminal. I'm using ubuntu-server with openssh and zsh. I have tried accessing the ...
0
votes
1answer
3k views

Ubuntu shortcut shell script launcher for multiple items

Ok every day I go through the same routine, and its tediously annoying. So I came up with a thought and wondered if its remotely possible. What I want to do is open maybe 3-5 terminal windows, and in ...
0
votes
1answer
884 views

“[Process completed]” Terminal self exiting

My terminal is self exiting only showing this every time I open it and not letting me type anything in Last login: Wed Jan 4 14:02:15 on console [Process completed] Any clues or anything? I can't ...
4
votes
2answers
10k views

downloading file using scp command

I have a centos server lets say with ip: 1.2.3.4. I want to download a file from 1.2.3.4 at path /root/pc/filename.rar to my localhost host (current pc). What command I need to download that file? I ...
1
vote
2answers
770 views

Opening a file from Terminal to a new window of TextWrangler

I'm able to open a file form Terminal with open -b com.barebones.textwrangler whicheverfile The problem is if any window of Textwrangler window is already is open, this file is open in that window. ...
3
votes
1answer
3k views

All commands are not working on Mac OS X Lion

I am faced with a problem, that I can't run even a single command on my Mac OS X Lion terminal, even "ls" command, when i print $PATH variable, found My-Mac:/ Mac$ echo $PATH /usr/local/git/bin ...
2
votes
4answers
3k views

Vim: Terminal-to-terminal copy&paste?

I am trying to copy a large block of code (with indentations preserved) from one vim terminal into another. I was wondering if there was a straightforward way to do this? Would this be considered a ...
2
votes
1answer
71 views

How to only show new processes in Activity Monitor?

Is there any way to make Activity Monitor only show new processes? Can you do this in Terminal instead?
0
votes
1answer
273 views

How to prevent scripts from changing the terminal's window title?

I'm using GNOME Terminal and zsh on Ubuntu with Awesome WM. I need to launch a terminal window with a certain title set like "s1" and no script inside that terminal should change the title of the tab ...
2
votes
3answers
9k views

vncviewer connection refused (61)

I have a root access to VPS (centos 6). I have installed VNCServer using this guide line http://tournasdimitrios1.wordpress.com/2011/02/02/how-to-setup-vnc-server-on-centos-5-x-fedora-11/ Everything ...
0
votes
2answers
559 views

Downloading files from FileSonic via terminal without a premium account

I found various blogs on the internet about how to download a file from FileSonic, Hotfile, Rapidshare, etc. from a Linux terminal if you have a premium account. Is there any way to download a file ...
4
votes
2answers
7k views

How to input hash (#) symbol to terminal?

I'm running Ubuntu Server as a virtual machine (using VirtualBox) on my mac. Normally on the Mac, I'd press alt + 3 to input the hash (#) sybmol. However, if I do this in my Ubuntu Server's console, ...
1
vote
2answers
2k views

what is the difference between terminal in Mac OS X and Ubuntu

Both Mac OS X and Ubuntu (and other Linus OS) has terminal / command line. Are these terminal identical across different OS? If not, what are the important difference?
0
votes
3answers
53 views

How can I see the size of each file in a particular directory in the terminal?

When using the terminal, is there a command that allows you to see the size of each individual file in a particular directory?
4
votes
3answers
7k views

Open Kubuntu terminal with keyboard shortcut

How to setup custom keyboard shortcut to launch terminal on KUbuntu? PS. I have tried setting up shortcut that would issue xterm command, but that shows raw terminal, that looks a lot differently ...
3
votes
1answer
3k views

/bin/su: Permission denied in CentOS can not set su - root

I'm trying to set myself as a root and once I type in su - root in the terminal it just give me an error saying /bin/su: Permission denied so I checked the permission in that file -rwsr-x--- 1 ...
2
votes
2answers
373 views

MAC-address like characters preceding username in Mac OS X prompt

I really cannot remember since when this began to occur or what I did immediately before this occurred for the first time, but the terminal prompt now includes a little network card MAC address-like ...
0
votes
2answers
898 views

How to add owner to the folder in MAC OS X?

I'm trying to ADD an owner to folder in MAC OS X. I tried to use chown, but it does change owner, to another new user. I don't want to change it, I just want to ADD new owner. Details: I have ...
6
votes
1answer
554 views

Mac OS X Lion Terminal SSH connection sharing error

I sometimes get this error when I try to ssh to a remote host: mux_client_request_session: read from master failed: Broken pipe I'm using Macbook Air OS X Lion with this in ~/.ssh/config: ...
1
vote
2answers
400 views

I removed /bin on my Mac, what can I do?

Last login: Sun Dec 25 08:01:09 on ttys000 login: /bin/bash: No such file or directory [Process completed] I opened up my terminal this morning and saw the above message. Not sure how I can get my ...
1
vote
4answers
1k 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?
2
votes
4answers
2k 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 ...
1
vote
1answer
2k views

“You are not in the sudoers file” error after running sudo command

I tried using a sudo command on my iMac to create a bootable version of Ubuntu, but when I run the command by pressing enter, I got the warning that the command might screw up my system, which I ...