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

0
votes
1answer
60 views

Save shell execution output to file and display in terminal [duplicate]

I know you can save the output of executing a script/file to another file by using: ./script.sh >> script_output.log but this doesn't display the output in terminal during execution. Is there ...
0
votes
0answers
64 views

Error Resolving User Permissions + Zsh Command Not Found

This is the list of user permissions after logging them to the terminal: ➜ ~ ls -ld / /usr /usr/bin /usr/bin/manpath drwxr-xr-x 33 root wheel 1190 Nov 14 08:49 / drwxr-xr-x@ 11 root wheel ...
0
votes
1answer
223 views

Mac OS X external drive appears as empty in Finder, but when accessing from Terminal, files show up

How do I access my files visually from the Finder? The drive is mounted, it is not empty, it worked on a Windows PC. And, as stated, I can access all of the files using the terminal. A couple of ...
0
votes
2answers
83 views

How can i scroll up in text mode of linux

is it there any way to scroll up and view the contents of text mode?I was trying to view all the files listed as part of my directory I can scrollup and view the output of text mode,any way to scroll ...
5
votes
2answers
1k views

How does ping work over a proxy?

I'd changed my machine's proxy to connect to a network, but later when I came back to my home network, while chrome and other browsers could not connect, I could ping sites from the terminal and even ...
1
vote
0answers
34 views

cp -r is copying over files that don't exist

I'm trying to copy the contents of one directory to another using: cp -r ~/dev/testing/app/ ~/dev/app/ It works, but it's copying over files that don't exist (at least visually). For instance ...
0
votes
1answer
29 views

how to zip a directory with its files using Terminal on Mac

i am trying to zip a folder with files in terminal using zip -r myzipfile.zip myDir but this doesn't include the files What should i do ?
0
votes
0answers
104 views

iTerm2 color scheme not working

I have trouble setting up colors for iTerm2. I have already checked this answer and done everything it says: Color scheme not applied in iTerm2 But iTerm2 does not show any colour, besides white ...
7
votes
1answer
170 views

How to make copying command from website to terminal secure?

Today I found intriguing example website-terminal-copy-paste. For example you may need to clone git repository. In webpage it looks like: git clone git://git.kernel.org/pub/scm/utils/kup/kup.git ...
1
vote
3answers
27 views

How to combine unzip and cat to work as one in the terminal

I work for a webhost as a front level tech and often we need to install a SSL for a customer. I'm on a Mac now but am familiar with Linux as well. What I'm looking to do would be to take the zipped ...
-1
votes
3answers
48 views

Remove all files but one folder with rm

I want to use rm -rf to remove files/folders inside a folder, but skip or ignore a specific folder. It has been suggested as duplicated to another quesiton, but that is not the case. The other ...
0
votes
0answers
90 views

Launch mstsc (Remote Desktop) on Terminal Server and pass parameters

We have VLAN 1 and VLAN 2, with some clients on VLAN 1 and some servers on VLAN 2. The clients should be able to RDP into the servers. We have installed a Terminal Server with access to both VLAN 1 ...
0
votes
2answers
234 views

Command Line: z is installed but can't find the command

I recently installed iTerm2 and ZSH (with oh-my-zsh) after some months of very light usage of the stock Terminal on Mac OS. I heard of a tool called "z" and installed it via brew with brew install ...
0
votes
1answer
132 views

Batch run multiple commands in a new shell

I'm trying to open a new Konsole and run multiple commands on it basically from my opened terminal shell I need to: Open a new terminal shell Set environment located in a specific folder Run gedit ...
0
votes
1answer
117 views

How to make `git log` show colors correctly in MobaXterm?

I tried git config --global color.ui auto, but it made no difference—the git log output is still full of [[32m, [[m, etc. How can I make git log (and any other commands with color output) show up ...
0
votes
0answers
32 views

Find doc/docx/txt/rtf/ file containing 12 strings/words only - MAC OS

This is a strange request and I'm unsure if it's even possible but Google led me here through a not so similar question and so I thought I'd ask. I basically need to find a text file on my computer ...
1
vote
2answers
109 views

Cygwin opening wrong terminal from taskbar

I've installed Cygwin on a Windows 7 machine. The other day, I used the Cygwin installer to update and install a new package. After that, the Cygwin icon on my taskbar opens some other terminal that ...
3
votes
0answers
101 views

Howto Emacs nyan-mode image in console

I have emacs’ nyan-mode working in my OS X desktop emacs (24.5). But I’d very much like to get that working in my console emacs. I’m using: Ubuntu Server 12.04 LTS (precise), in a Vagrant VM. (OSX) ...
0
votes
0answers
52 views

Erroneous Space in Powerline Bash, in Tmux

When running powerline in bash, in tmux, I see an unnaturally large space after the prompt. I thought it might be a font issue, but the shell is handling the font ok, when not in tmux. Any tips on ...
1
vote
0answers
24 views

How to make an interactive subshell in tcsh?

How can I make an interactive subshell in tcsh? E.g.: % alias pathfrom 'cd `pathto -f`' ... where "pathto" is a script that asks the user (via STDOUT) for input (via STDIN) and prints a string in ...
1
vote
2answers
97 views

Show keys pressed in custom console

I have a custom client that connects to remote Ubuntu via websocket and runs bash there. But keys like Del, Arrows etc. don't work. How can I output what is being received on the server side? None of ...
0
votes
1answer
56 views

ssh port forwarding through a pseudo terminal

Here's a situation: I do all my work on a Mac. There's a certain linux server 'server01' that provides access to another linux server 'server02' via a pseudo terminal So, to ssh into ...
0
votes
1answer
38 views

Open Source Terminal Emulator applications

We are using Rumba and Reflections for our IBM mainframe and Unix emulators. I was wondering if anyone had a side by side comparison of open source emulators that I can compare to Rumba and ...
1
vote
1answer
78 views

How can I get vim autocompletion working in iTerm

I recently switched from MacVim to regular Vim in iTerm. I've been encountering an issue where I can't get vim's autocompletion to trigger using Ctrl-N. Instead, I get iTerm's autocompletion which ...
0
votes
1answer
36 views

Ran a WHOIS query, returned info as well as a blacklist indication?

I am following the Pentesterlab Bootcamp and I have started playing with the WHOIS command in terminal. I ran a WHOIS command and received the queried information, as well as an indication that my IP ...
0
votes
0answers
34 views

Can't connect to hostgator at work

In bash at home I type in ssh user@domain.com -p 2222 It works fine and I connect At work I type the same and I get the following error: ssh: connect to host domain port 2222: Bad file ...
0
votes
1answer
131 views

Copy, paste, and edit multiline command in bash terminal

Commands with lots of arguments sometimes use slash escaped newlines to make them easier to read on the web. Here is a silly example echo -n \ "hello" \ "world" I'm not sure how to paste and edit ...
0
votes
1answer
28 views

How to choose file based on position in shell ls list?

Say we are using ubuntu's bash and we cd to the folder myFolder. Now, say we use ls in this folder, and we get a list of files: file1 file2 file3 We want to, for the sake of this example, run file2 ...
2
votes
1answer
142 views

Prevent mouse over to give focus in ConEmu

In ConEmu, when I have multiple pane active, if I move the mouse cursor over one of these panes, they are going to get the focus (even if I don't click on them). Is it possible to disable this ...
0
votes
1answer
33 views

On Macs, is there a similar command like “explorer .” in Windows?

Is there a way to open the directory I'm currently inside of, within a Terminal window? On a Windows machine, I know that I can open the current directory in Windows Explorer by using the command : ...
1
vote
0answers
40 views

Super/Alt key combinations making screen go blank

I started having a weird issue on my Ubuntu Linux with KDE: if I press any of the following combinations: (Super or Alt) + left arrow (Super or Alt) + right arrow (Super or Alt) + any F-key The ...
1
vote
1answer
27 views

Unexpected BPython console output behaviour

I am using BPython to run Python scripts, and I found the console output has a different behavior than the regular Python console.. For example this small snippet: import time for i in range(100): ...
0
votes
1answer
22 views

Dump to terminal or file content of “less” pager utility

It is usual to use less utility as pager (with -r option). But less uses special terminal buffers, so it preserve previous output to terminal and when I leave less I see previous content. That is ...
0
votes
1answer
33 views

Horizontal split hotkey not working in ConEmu

I've setup the vertical split hotkey to "Alt+Shift+H" in ConEmu (see screenshot below). However when I press this hotkey it's openining a new terminal in a new tab instead of splitting the current ...
1
vote
1answer
81 views

Mac Terminal displays some characters incorrectly

My terminal is not displaying characters correctly. For example, this usage text for the nc utility: I have found help pages regarding typed characters showing up wrong, but in my case they are ...
0
votes
1answer
56 views

How do i write an applescript application from terminal?

I want to write an applescript application from terminal. So far I have been able to write an .scpt file but that is not enough. I need to convert it to an applescript application that can then be ...
0
votes
2answers
260 views

No entry for terminal type when SSHing into a router?

I’m trying to SSH/Telnet to my home router (Zyxel P-2812HNU-F1). I know the router host and IP address. Also the administrator login credentials. I’ve set ssh to port 2222 and telnet to 2323. When ...
0
votes
2answers
155 views

'Exiting' to shell after a .command

On OSX, with a .command file like #!/bin/bash cd /Volumes/Volume/Path && executable --some "arg" when I terminate the executable process (with CTRL-C), is there some way to leave the CLI ...
0
votes
1answer
35 views

Mac OS X - Why doesn't the 'open' command pass parms for me from a bash script?

I am attempting to run this 'open' command through a bash script, but the arguments aren't passing for some reason. Any ideas? #!/bin/bash open -a /Applications/Google\ Chrome.app/ --args ...
0
votes
1answer
74 views

Get currently playing file in VLC using CLI

Is there a way I can run a command in my Terminal to copy the current playing file path in VLC file into a specified location? e.g. the current file /user/imran/example.mp3 would be copied to ...
3
votes
3answers
291 views

Save and restore terminal on reboot

Is there a way to save my terminal emulator windows and tabs for when I reboot the computer? I generally have about 10 or so open tabs at any given time and opening each tab to set up everything ...
1
vote
2answers
262 views

How to fix Unprotected Private Key file on Mac OS X

I am trying to add my ssh private key file to a Mac in the terminal. When I run: ssh-add -k / /path/file this is the error I'm getting: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ...
2
votes
1answer
44 views

Xyplex MaxServer 20 Terminal Server

I recently purchased a Xyplex (which was purchased by MRV) MaxServer 1620 terminal server for my CCNA lab so I could manage all of the console connections from a single device.. Well, that was the ...
0
votes
1answer
26 views

TCP settings not sticking after reboot (Yosemite)

I'm changing the following settings in the Terminal, and after I reboot, they return to their default values. sysctl net.inet.tcp.always_keepalive=1 sysctl net.inet.tcp.keepidle=20000 sysctl ...
-1
votes
2answers
29 views

Unable to access .shh folder in terminal

Hey guys I am just wondering why this bellow command will not work: Nicholass-MBP:~ nicholasmaddren$ sudo cd ~/.ssh So I run this command within terminal to try and access the .shh folder that has ...
0
votes
2answers
39 views

How can i redirect command output in OS X to both console and file at the same time [duplicate]

I need to basically see the output of a command which are logs that could run into 1000+ lines while at the same time send it to a file. please help.
1
vote
1answer
35 views

Is there a way for autocompleting commands' flags when using OSX terminal?

I wondered if there is a way/plugin/bashrc_function for autocompleting commands' flags when using OSX terminal. Example When writing grep --excl and pressing tab it would autocomplete to grep ...
1
vote
1answer
180 views

Key bindings broken in tmux 2.1

I have the following lines in my tmux.conf: bind C-n next-window bind C-p previous-window Then I have the following key mappings in ITerm2, which send send C-f C-p and C-f C-n to the terminal (my ...
1
vote
1answer
54 views

Kill Tomcat on Windows 8.1

I am trying to deploy a JavaEE application, but I get this error: Starting of Tomcat failed, the server port 8084 is already in use. The reason is obvious, the solution, not so much. According ...
0
votes
2answers
107 views

Pass mouse events through tmux

I have noticed that scrolling in tmux is a hazzle and was wondering if it was possible to have tmux pass them along to the application or terminal. I may be understanding things wrong here but I have ...