Questions tagged [terminal]

A terminal or command-line interface is a text-only interface for interacting with an operating system or a piece of software. A user typically types commands into the terminal to perform specific tasks.

A terminal or command-line interface is a text-only interface for interacting with an operating system or a piece of software. A user typically types commands into the Terminal to perform specific tasks.

Programming standards

Wikipedia articles

See also:

24127 questions
9
votes
1 answer

Cannot use git in Android Studio's terminal

Like my title, I cannot use git in intergrated terminal in Android Studio, although I added Path in Enviroment Variable. Please tell me why? Thanks everybody for your help, after restarting windows, I used git command in terminal :D
hopdacho
  • 115
  • 1
  • 1
  • 6
9
votes
1 answer

Print specific lines of a file in Terminal

This seems pretty silly, but I haven't found a tool that does this, so I figured I'd ask just to make sure one doesn't exist before trying to code it up myself: Is there any easy way to cat or less specific lines of a file? I'm hoping for behavior…
m81
  • 2,217
  • 5
  • 31
  • 47
9
votes
3 answers

Delete first line of all files in a folder (on ubuntu)

I have a folder that has 2800 .txt files in it and I need to delete the first line of every files. The names of the files are all different except for that fact that they end with .txt . would it be possible to do that while keeping the same file…
SparksHallow
  • 91
  • 1
  • 2
9
votes
13 answers

Where can I find a graphical command shell?

Terminals and shells are very powerful but can be complicated to learn, especially to get the best out of them. Does anyone know of a more GUI based command shell that helps a user or displays answers in a more friendly way? I'm aware of IPython,…
Nick
  • 27,566
  • 12
  • 60
  • 72
9
votes
4 answers

Run .py file until specified line number

In a linux terminal typing python script.py Will run run script.py and exit the python console, but what if I just want to run a part of the script and leave the console open? For example, run script.py until line 15 and leave the console open…
Kirbies
  • 777
  • 1
  • 10
  • 17
9
votes
2 answers

Cant run rails commands. Your Ruby version is 2.2.1, but your Gemfile specified 2.1.4

I am not able to run surver rails s or cant make controllers etc. What should I do ? Terminal showing following error: Your Ruby version is 2.2.1, but your Gemfile specified 2.1.4
Ankush
  • 2,405
  • 3
  • 22
  • 45
9
votes
2 answers

Haskell ghci lambda symbol in prompt

In Haskell ghci is it possible (and how) to get a lambda symbol in the prompt, for instance like this λ> Using Linux Ubuntu terminal.
elm
  • 20,117
  • 14
  • 67
  • 113
9
votes
2 answers

Get pid of Chrome tab via terminal

Is it possible to get the pid of a specific Google Chrome tab (like the current one) via the command line? Getting it via AppleScript would be an acceptable solution. My use case is limiting the CPU usage of a specific tab, so for now my solution to…
user137369
  • 5,219
  • 5
  • 31
  • 54
9
votes
2 answers

Creating and writing into .plist with Terminal or bash script

I need to create a .plist file during post install and the only option I can use is a bash script. I have to create a foo.plist into /Library/launchAgents with a bash script and I've used the following command: cd /Library/launchAgents touch…
Mubasher
  • 943
  • 1
  • 13
  • 36
9
votes
3 answers

Is there anyway to get pdb and Mac Terminal to play nicely?

When debugging my django apps I use pdb for interactive debugging with pdb.set_trace(). However, when I amend a file the local django webserver restarts and then I cant see what I type in the terminal, until I type reset. Is there anyway for this to…
Ross
  • 17,861
  • 2
  • 55
  • 73
9
votes
5 answers

Mac OS X - adding a border to the terminal

I am using the terminal on Mac OS, but all the terminal's windows are borderless, making them difficult to distinguish when they are one over the top of the other. I can't find the way to add a 1px border around the window (my terminal's windows…
Romain Jouin
  • 4,448
  • 3
  • 49
  • 79
9
votes
1 answer

Need help editing files in place with sed

I am trying to add a file in place with sed and I keep getting this error message sed: 1: "test.txt": undefined label 'est.txt' This is the command I am using Desktop > sed -i 's/White/Black/' test.txt I am not sure what I am doing incorrect…
Eldan Shkolnikov
  • 441
  • 1
  • 6
  • 13
9
votes
2 answers

Change oh-my-zsh theme when ssh is run

I have Oh-my-zsh installed on iterm2. How can I make my terminal change theme whenever ssh is run? It would be nice if the script also changes the background to one of the presets imported. I am a complete bash noob. Please explain in newbie…
user3534472
  • 341
  • 3
  • 6
  • 11
9
votes
1 answer

emacs console mode Org-mode strike-through is not displayed as expected

I'm using org-mode. Using '+' around a text, it displays correctly in the GUI as strike-through text (example: +striked-through+). But this doesn't work in the emacs console mode, the text is not displayed striked-through: there are no difference…
vaab
  • 9,685
  • 7
  • 55
  • 60
9
votes
3 answers

Change cd default directory (bash)

I'm looking for a way to change the default directory of cd, and I'm wondering if this is possible. I tried adding alias "cd=cd ~/Documents/Github" to .bashrc, but this obviously doesn't work because it breaks the cd command so that you cannot use…
Jay
  • 998
  • 1
  • 10
  • 22