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
56 views

Send broadcast message on user login

I'd want to add a new feature to my Red Hat 5 so when any user opens a ssh remote session a broadcast message gets delivered to a defined user/all users. How to do it?
2
votes
1answer
38 views

Weird Tmux issue

When attempting to split Tmux windows by using commands, I get the opposite effect of what one should expect: The command tmux split-window -v Produces a horizontal split, while the command ...
1
vote
1answer
260 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
0answers
23 views

Is there a way to set up a key combination to spawn a new urxvt window?

I'm running urxvt and would like to create a new urxvt window without having to run the command explicitly or use an external launcher. Is there a way to set something up for this to work as, for ...
1
vote
2answers
43 views

SSH or Remote filesystem mounting

In a situation where you spend the majority of your time in the terminal and Vim/Emacs/other command-line editors, what are the pro's and con's of working via SSH or by mounting a remote filesystem ...
1
vote
1answer
197 views

Run Safari from terminal with given URL address without open command

I'm having trouble with opening Safari from terminal. Command I tried is /Applications/Safari/Contents/MacOS/Safari http://www.example.com Safari opens and tries to navigate to the url: ...
1
vote
1answer
68 views

How does tab-completion “know” what files there are in sub/super folder?

I wonder how tab-completion knows that certain file exists in a directory above the current directory or in the working directory? If I have a file named foobar in a subdirectory and I type in foo ...
2
votes
2answers
87 views

How can I create a new document without opening vim?

Is there any way I can create a new vim document without opening vim right away? For instance, when I enter vim myfile.txt, I'm launched into vim. I don't want to be launched into vim.
0
votes
2answers
115 views

Shell function in .bashrc is not recognized

I know this must be something silly but somehow I am stuck trying to create a shortcut (alias) for a shell function. Here is my exact .bash_profile: [[ -s "$HOME/.rvm/scripts/rvm" ]] && source ...
0
votes
0answers
40 views

Reading setterm dump output in console vs xterm on archlinux

I have generated some dump files from a console gdb -tui sesson on one archlinux box using setterm -dump -file ss.dump. Using a console, I can view these files on two different archlinux boxes. In ...
1
vote
1answer
327 views

Convert Pages '13 files to PDF in batch

I have tons of Pages files lying around taking up precious space on my SSD. I want to batch convert them to PDF preferably via a terminal command. I have iWork '13 and iWork '09. AppleScript-ability ...
0
votes
1answer
43 views

On OSX, how are zip archives made through Terminal excluding specific files?

On Mac, a lot of excess files are added in a zip archive that can be undesirable on other platforms, mainly .DS_Store files and the main _MACOSX folder. The OSX platform has a zip utility built in, ...
5
votes
1answer
129 views

Open new Finder tab when using 'open .' in the Terminal

In the Terminal I use open . to open the current directory using Finder. Open folders in new tabs settings is set in the Finder, yet it opens a new window every time. By the end of a project/day I ...
0
votes
1answer
36 views

Extract single file from tar without taking its directories with it

I'm currently using this command tar -zxvf foo.tgz -C /root/dir1/ dir2/dir3/dir4/dir5/file to extract my specific file from a tar archive to a given directory, dir1. As is, I end up with ...
1
vote
0answers
68 views

Git interactive.singlekey from urxvt

In git-config's docs it says (emphasis mine): interactive.singlekey In interactive commands, allow the user to provide one-letter input with a single key (i.e., without hitting enter). ...
0
votes
1answer
82 views

How to paste a tab into OS X Terminal from clipboard?

Tabs are getting removed from text that I paste into the Terminal. Any suggestions? An example of my use case is to paste sections of TSV files into a remote ssh session terminal, bypassing the ...
0
votes
0answers
77 views

“ubuntu terminal”-like console for windows?

I have to work in vista for a while and I am searching for a console that will look much like ubuntu terminal. I want to be able to make the background transparent, change the font color, use keyboard ...
0
votes
0answers
73 views

How can I customise grc (generic colouriser) with Homebrew?

I've installed grc through Homebrew on Mavericks. I can't quite understand the readme. What I want to do, for example, is have the terminal output colourise the number at the start of each line when I ...
0
votes
1answer
118 views

Using Terminal to copy Aperture files from external hard drive to Mac

I'm a novice Mac user who inherited photo equipment from my photographer Dad. He used Aperture to manage his thousands of photos. I tried copying a 20 gB file to my computer but it's failed each time. ...
0
votes
0answers
62 views

Find an xterm window by title, enter one command and press return using python/bash

I have an xterm window with a custom title. The xterm was fired up the following way: xterm -T customTitle I would like to enter a command (for example ls -l) into this xterm window from a ...
1
vote
5answers
90 views

Repeat a terminal command

Suppose I have a terminal command called foo (in reality this would be something like cd or ls or something more complicated. Is there a way that I can perform this command numerous times WITHOUT the ...
1
vote
1answer
119 views

Keystrokes and commands for my inputrc — key-combination for “Shift-Space”, remap “Ctrl-PageUp/PageDown” to something without Page-keys

I need to add some things to my inputrc. I'm using bash 4, as OS I'm using debian and OSX. My terminal emulators are rxvt-unicode-256 on debian and Terminal.app on OSX. My new macbook has no ...
1
vote
2answers
49 views

How do I launch a command file (e.g. *.sh) in a separate shell interaction utility (e.g. iTerm2) on my user's login?

iTerm2 is an awesome utility and makes my interaction w/ the command line much easier. There are a lot of update commands I run on a daily basis, and thought it would be amazing if those could be ...
1
vote
1answer
59 views

Need help $PATH and terminal commands relink - no sudo, ps, grep

I had to change some path settings to install node.js in turn I must have edited a file that removed the path from the correct directory, whereby sudo, ps, grep etc. live. I am not sure how to reset ...
0
votes
1answer
66 views

Why does Github list the Ubuntu computer's name as author instead of my Github account name when I push from command line?

When I git push from a terminal on my Ubuntu box, which has a computer name of Bot, it asks for Github credentials, and I provide them. The username I provide is my own, not Bot. Yet when I go to ...
1
vote
2answers
86 views

Why is my recursive grep not working?

I am in a parent directory and want to search for any ODT files (LibreOffice Writer) that contain the phrase "GWT" in them. I'm on Ubuntu 12.04 desktop. From the terminal: ...
9
votes
5answers
464 views

Is there a command in Linux which waits till it will be terminated?

I'm trying to build a Windows batch file, which starts putty/plink with port forwarding, and nothing else. The Windows part is ready so far: start plink.exe -ssh -i key.ppk -L 1234:localhost:80 ...
0
votes
1answer
509 views

How to connect to a local hyper-v virtual machine via SSH?

What I have: Windows 8.1 professional edition What I want? To simulate a circumstance: connect a remote Linux system using SSH. What I do: Install CentOS 6.4 x64 under the built-in Hyper-v. It works ...
0
votes
1answer
63 views

Ubuntu equivalent of OSX Terminal.app “Window Group” for saving size, position, number of terminals?

Just like the title... I am looking for an Ubuntu alternative to OSX's Window Group. On OSX, I can open a few terminals, resize them, position them perfectly, and then save the configuration. Every ...
1
vote
4answers
715 views

How to make a bootable command prompt usb?

There is many ways to make bootable Windows usb., but i would like to make a bootable windows command prompt via usb. Is there a way using the Diskpart or another program? If no, is there a way to ...
0
votes
2answers
90 views

How to make Ctrl/Shift+KP_Insert perform copy/paste in Linux terminals.

On my laptop keyboard I don't have dedicated insert/delete keys - there are only numpad ones located at the same buttons as "0" and ".". Xev displays that these have KP_Insert and KP_Delete keysyms, ...
1
vote
0answers
101 views

SSH doesn't resize terminal

I'm trying to resize my terminal window which is connected via SSH, but the change of the size is not reported to the host. My system is Arch-Linux where most packages are up-to-date. Fortunately, I ...
0
votes
0answers
33 views

Cannot navigate backwards in manpages

In manpages I can navigate forwards (using eg. C-d, or C-f), but not backwards: C-b, or C-u do not work. Nor can I search backwards: While I can jump to the next found item using 'n' I cannot jump ...
0
votes
0answers
82 views

Mac OS X: Port 8001 blocked in XAMPP. No Firewall on, no ISP interference

I have been trying to setup a new site on localhost which needs to be accessed via a separate port, for example port 8001, 8080, etc. As long as it is unused, I can apply it in this case. I have ...
0
votes
1answer
61 views

bash testing for “open terminal”

I noticed in BASH's list of CONDITIONAL EXPRESSIONS a -t expression that tests whether a file descriptor is an open terminal. i tried the following: if [[ -t $(tty) ]]; then echo open terminal ...
2
votes
0answers
170 views

Unzip Multipart Zip from Command Line

Thanks in advance for any help. I am trying to unzip a multipart zip file from the command line in OSX 10.8.5. I created the zip using zip -s 800m foo.zip foo.mov The file foo.mov is 2.7GB. So I ...
0
votes
0answers
166 views

Connection to dbus session failed

I am running Debian 6 with Gnome 2.30.2 (old, but it's the workstation I have to use). When I want to run dbus-monitor or any other dbus application from within tmux, I get an error: $ dbus-monitor ...
1
vote
0answers
172 views

mv command says “No such file or directory”

I am attempting to rename a directory on an external hard drive on Mac OS X. When I tried in the finder I got an error that says, "An unexpected error occurred (error code -43)." -- so I thought I may ...
2
votes
1answer
140 views

Command line document scanner

Is it possible to trigger scanning automatically on OS X? All I was able to find is http://blog.scottkleper.com/scanline-command-line-scanner-for-mac/, which is rather good, only that it can scan into ...
0
votes
1answer
58 views

How to check the warning in linux service status?

If I do: $ sudo service <service_name> status outputs: [warn] <service_name> is running... ... (warning) but it doesn't say what warning it is. How can I check what warning is about? ...
0
votes
1answer
210 views

Mac Terminal keyboard shortcuts for Page Up/Page Down

I had a mac-newbie friend ask me about scrolling to the top and bottom of the window in Terminal. Also, paging up and paging down. I gave him a satisfactory answer (basically hold down the fn key ...
1
vote
1answer
77 views

*live* vim syntax highlighting on stdout?

I want to have some program's output colorized as it apperas on terminal. I know that utility named highlight does the this. But: it has a limited set of built-in language support, and I want ...
0
votes
1answer
80 views

Get Rid of Error Message

I have a script with many commands. Like #!/bin/sh mv new /root/ mv old /root/ mv foo /code #many other commands If the file 'new' is not found bash will give an error message:foo: No such file ...
0
votes
2answers
117 views

Check If a script is executed as root?

I have a script that requires root privileges. I have to execute it either via sudo or from an account with uid 0 (e.g. root). If the script is not executed with sufficient rights then I want that ...
1
vote
2answers
137 views

Ignore case from user input

I'm trying to write a script to catch user input. The script should ignore the case. Consider this script foo.sh: if [ $1 == "string" ]; then echo true else echo false fi If the input of ...
0
votes
2answers
99 views

Undo chmod -R a+rwX command

How can I undo the following command: chmod -R a+rwX / I used it to modify some permissions, but it did not do as I had expected. I want to undo it, or at least reverse it.
1
vote
3answers
61 views

Bash rename to time

How can I rename a file to match the current (rounded) time. If it is for example 10:55 or 11:05 then I would like to rename it to 11. Something like this: mv file.txt file_`date +%H`.txt but with ...
1
vote
2answers
57 views

Terminal emulator with half block cursor?

Is there a terminal emulator which allows half block cursor? The main reason I want this is that in vim when some words are highlighted it's difficult to see where the cursor is: In this pic I have ...
0
votes
1answer
39 views

A Script That is Aware of Remote File Change

curl -z pci.ids --remote-time --silent -f -L -O http://pciids.sourceforge.net/v2.2/pci.ids This Code Checks For The Remote File Change and Download If Remote File Has Been Modified but Is There a ...
1
vote
0answers
52 views

How can I launch Front Panel in CDE (Common Desktop Environment)?

When using Cygwin/X, after I ssh with x11 forwarding into a Solaris 9 system, sometimes I can't see the Front Panel or even the wallpaper: Is there a way to bring Front Panel into view, or launch ...