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

Extract the first 2 letters in each line of a file using a single command Terminal

I want to extract the first 2 letters of each line from a file and save it in a variable and print it in a single command. Can anyone help me with the command? Considering my file has 20 - 30 lines ...
1
vote
1answer
90 views

Ubuntu virtual terminal cursor style resetting

I am running Ubuntu 14.04 and using one of the virtual terminals (TTY[1-6], accessible via Ctrl-Alt-F[1-6]); I want to permanently change the appearance of my cursor from the apparent default, a ...
0
votes
1answer
78 views

Is there a way to set up a warning before executing some commands in the terminal?

There are some terminal commands that are proficient at destroying large swaths of data very efficiently. Like: sudo rm -rf /* or rm -rf /*. I want to set up a warning that will show up, whenever ...
0
votes
0answers
29 views

OSX terminal : log on on a website

I would like to login/ out on a Web site using the terminal, I currently using a appleScript I wrote but was wondering can you use terminal command line instead (not running my script from terminal) ...
2
votes
1answer
38 views

Terminal not working properly

While I was messing around with stuff, I ran the commands: curl https://sdk.cloud.google.com | bash exec -l $SHELL gcloud components update dns gcloud auth login gcloud init After this, my bash ...
0
votes
2answers
83 views

bashrc alias ls not working

I'm trying to modify the ls command with an alias in my .bashrc file, and I'm getting some strange errors. .bashrc file export http_proxy="Some URL" export https_proxy=$http_proxy alias ls='ls ...
0
votes
2answers
55 views

Execute Command After Previous one Finished

Is there a terminal emulator which allows the user to execute a command after the one currently running terminates? I'm searching for a software, not for an explanation of how to concatenate commands ...
0
votes
1answer
25 views

If it is even possible, how do I apply the “-32bitclient” command to a directory in Terminal?

I'm running the older 10.6.8 on a computer, and in order to use the software installed on it, I need to keep it in 64-bit mode. However, in order to download files off a particular media card, I need ...
0
votes
0answers
151 views

Finder not showing folder created with “mkdir” from the Terminal in OSX El Capitan

I created a folder with Terminal using the command: mkdir images I went to view it in Finder but it doesn’t show up. I can view the folder in terminal using ls in the parent directory and can even ...
0
votes
0answers
14 views

Fullscreen TMUX sessions selection

I've found TMUX's choose-tree command to be quite useful when navigating between sessions, but I dislike it only displaying inside of the current pane. I'd prefer it to overtake my entire screen. ...
0
votes
0answers
53 views

How to rename terminal name in Linux

I am working with a terminal in Linux. I noticed that after I change the title of a terminal using "Ctrl-t" I cannot set it again using the command "label" or "echo -ne " looks like I need to ...
0
votes
1answer
85 views

Needing to open OS X bash script as via launchd IN a terminal window

I've got a lengthy and complex bash script which works OK, but I'm trying to automate my deployment process and I'm flummoxed at this point. I can get the script to run as a LaunchAgent no problem, ...
0
votes
2answers
49 views

How to perform batch commands in terminal for files in each folder

I have a folder which contains some folders inside. In each folder there are some bmp files. I want to go inside each directory, convert bmp images to pgm format and remove original bmp files, and ...
-1
votes
1answer
21 views

tmux detach session remote

I run at first terminal tmux, then I run another terminal with tmux and attach to session which I run at first terminal. First is smaller than second and I can't go to it to do something. How to ...
0
votes
0answers
47 views

Mount AFP from terminal / AppleScript

I try to mount an AFP / SMB drive either from terminal or AppleScript, Used to have a code for that but can't find it, the only issue is my password have "@" character with probably make the terminal ...
0
votes
1answer
30 views

How can I make the Ubuntu terminal follow the same sorting with ls -l as Mac OS X uses by default?

I like the default sorting of ls -l in Mac OS X and have gotten used to it. Now I'm starting to use Ubuntu machines more frequently, and I'm hoping to coerce its terminal into sorting the listing in ...
0
votes
1answer
44 views

Replace multiline string by another multiline string in a markdown file on OS X

I want to replace a multiline string in a markdown by another one (also multiline). I think perl is the best option. E.g. i want to replace ## Exercise 1 some text some more text ## Points by #...
0
votes
0answers
18 views

mac terminal and iterm does queue up input during operations

I have this problem where if I input something time consuming the inputs I give the terminal does not queue up on the next command line. $ rails c afsdfadfadsfadfa development environment (Rails 4.2....
1
vote
1answer
50 views

Make `last` display year in Terminal

Is there any way to get last (on Mac OS X 10.11.2) to display a full date (including year)? Right now it displays only day and time: user$ sudo last user | head -n3 user ttys000 ...
1
vote
1answer
54 views

Prevent open -a Terminal.app from automatically exiting on Mac OS X

On my Mac OSX 10.9 Mavericks, I wrote a small bash script to open a log file for a terminal game application I'm writing so I can see print statements: #!/bin/bash printf '\e[3;0;0t' ...
0
votes
1answer
114 views

Why is 256 color display not working with linux console, while it does with screen?

I am working on a python program with a text-mode GUI based on urwid. urwid is a library to create ncurses-style programs with python. Operating System is CentOS 7. Everything works fine under '...
0
votes
2answers
78 views

OSX: Terminal Zip command not working

I am trying to zip a folder from terminal command (given below) zip myZip.zip path\ Of\ the\ Folder The above command providing the given below result is My Command wrong. Please help, I have to ...
0
votes
0answers
102 views

Combing r-exec and terminal-panel functionalities in Atom

I would like to combine the functionality of r-exec in Atom with the Terminal-Panel package. In particular, I'm interested in achieving similar flexibility as illustrated in this SO answer with ...
0
votes
0answers
41 views

Stuck in insert mode in tmux

I'm doing something accidentally that makes me stuck in insert mode while in tmux. I have no idea what I'm doing or how to set it back. Outside of tmux not a problem. Pressing the insert key does not ...
3
votes
1answer
127 views

PuTTY or other Windows SSH client: mouse wheel to scroll less/more or other pager on UNIX server?

I like GNOME terminal because when you ssh to a server and run commands such as man init then you can use the scroll wheel to navigate the man page. Unfortunately my Windows SSH clients do not ...
1
vote
1answer
345 views

Terminal 'last' command doesn't display login history

The last command in Terminal (on Mac OS X 10.11.2) is supposed to display a list of login history. However, when I type it in, all I get is user$ last wtmp begins Mon Jan 11 13:17 user$ last user ...
-1
votes
1answer
28 views

How to create a “function” for terminal to run

I have about 10 terminal commands that execute syncing with a Git repository and a live-server. How can I boil that down into single command? Is this a use case for scripting? Steps include: ...
0
votes
0answers
32 views

Opening new terminal window also switches to last tab

I'm using Gnome Terminal 2.31.3 and RHEL6. Like the title says, when I open a new terminal window, my current terminal switches to the last tab in its window instead of keeping the current tab active. ...
0
votes
1answer
180 views

Conemu ssh results in “Pseudo-terminal will not be allocated because stdin is not a terminal”

I'm using a Conemu task to ssh into my server. In order to have 256 color for my motd generator support I have put the cygwin-connector conemu-cyg-64.exe in the bin folder of my CygWin installation on ...
0
votes
1answer
3k views

MAC OSX: How to unzip password protected .zip file using terminal

I need to unzip a .zip file which is password protected using Terminal I am able to unzip the .zip file (if it is not password protected) using this command unzip /Users/vikas/Desktop/as.zip -d /...
2
votes
1answer
78 views

Screenshot error with import linux command on enlightenment 17

I have installed enlightenment 17 on a debian 8 Jessie and I have issues about doing screenshot with import command. Once I type "import test.png" from a terminal, and after selecting the area with ...
1
vote
1answer
32 views

Why does CTL-3/CTL-# equal CTL-[? (and others) in the case of ASCII control characters

I've been rediscovering ASCII control characters as I fiddled with some terminal emulation code, and wrote a small program that outputs the hex value of each key I press (tcsetattr() with ~ICANON). ...
0
votes
0answers
15 views

Scrolling up in iTerm2 shows previous Vim sessions

In iTerm2 (Version 2.1.4), when I scroll up to see previous commands, I'm seeing chunks of previous Vim sessions, which I don't want to see. Any idea why that would be happening and how to fix that? ...
1
vote
1answer
17 views

How can I direct my output to screen and to file simultaneously?

Linux, (Ubuntu) here. Should be effective every time I open a new terminal. Output to file should contain all messages including errors and warnings, should be the same as shown in the screen. Can I ...
0
votes
1answer
42 views

How to print full path of OSX applications

I would like to get the full path of OSX applications like Safari, Chrome, iTerm... As I see, OSX packages have a specific folder structure, and so, the main binaries will end up in /Applications/*...
0
votes
2answers
1k views

How can I change terminal font size in i3 on arch linux?

I installed xorg, I can successfully startx and I installed i3 on arch linux. How can can I change, or more specifically; increase the size, in the default terminal in i3? From the i3wm documentation ...
0
votes
1answer
44 views

Open very long name file with terminal

Is there is a way to open very long name file from command Prompt in easy way ? rather than start fileName.type
0
votes
0answers
61 views

How to arrange for the shell to autocomplete git branch names?

Is there a way to make the shell autocomplete git branch names like it does in linux(mint). While typing, for example, git push -u origin so<tab> in linux, this will give me all the branches ...
9
votes
4answers
313 views

How to quickly get the previous line output in a terminal without using a mouse?

Linux (e.g. Ubuntu) terminal, is there a method to get the last line? Say I am randomly typing a td command, which has not been installed on my system, so I will get a message like below. I would like ...
0
votes
0answers
54 views

How come I have to `source ~/.profile` every time I launch a new terminal?

When I launch my terminal and I do node --version I get 2. w/e Then I try to do nvm use 5.3.0 and it says nvm: command not found So then I have to source ~/.profile Then I can use the nvm ...
0
votes
1answer
335 views

Able to delete part of the system log files on Mac OSX El Capitan based on a time period?

I was wondering if it was possible to delete only a portion of the system log files on the Mac OSX El Capitan based on a time period? Say I want to delete all activities that occurred between 9am - ...
-1
votes
2answers
24 views

why is the grep command being echoed [duplicate]

I currently have something like this. I am attempting to find a process with a certain name >:~# ps | grep avahi-daemon 12499 avahi 3048 S avahi-daemon: running [BlahBlah.local] 12500 avahi ...
0
votes
1answer
35 views

Installation issues github program: truecrack

I am trying to install TrueCrack from github: https://github.com/lvaccaro/truecrack . As the description says I do this: cd truecrackDirectory ./configure --enable-cpu make However, when I do the ...
0
votes
2answers
63 views

Untarring into a temp directory, then deleting the directory

I'm a very new linux user, and I'm untarring a tarball into a directory, say that without smiling. What I want to do is create a temp directory with the mktemp -d command and use the tar command to ...
1
vote
3answers
69 views

What's “terminal” about CMDs\Consoles? Why are they called this way?

I'm trying to figure out why are CMDs\Consoles\CLIs\command-lines are often called "Terminal"? I know that they are first and foremost shells for an OS... And thus usually seen as a layer and not as a ...
0
votes
0answers
47 views

Macbook small "s” key doesn't work after opening a ssh session in terminal

I have a strange situation with my MacBook. When I open a terminal window, the "S" key works as expected. When I open a ssh session within the terminal window the small "s" key doesn't work. The ...
0
votes
0answers
24 views

Can't access command line of Raspbmc/Debian on boot by pressing ESC

I can't get to the command line by hitting Esc on reboot when prompted. Kodi version from the settings screen is "Compiled: Feb 2 2015)". I can't SSH in because my RPi isn't getting DHCP renewed on ...
0
votes
0answers
60 views

How to permanently change default spelling language for Office 365 on Mac via Command Line

I am forced to use Office 365 at work. In OneNote or Word I can change the setting to English ad hoc but whenever I start typing again, it goes back to Spanish. The only way is to select active ...
0
votes
1answer
39 views

Setup xterm-256color on Minix3

Problem I'm trying to setup 256 color on Minix3. I found that the xterm-256color file exists on /usr/pkg/share/terminfo/x. I tried to set it up in ~/.profile with if [ -e /usr/pkg/share/terminfo/x/...
0
votes
2answers
34 views

Write command output to a file and to std out/error

I have a command that I run a lot which I like to direct it's output to a file. I do this like so: runFooBar > output.txt 2>&1 Is there a way that I can write the runFooBar output to the ...