Tag: sh

54 votes
13 answers
2.3K views
How can I maximize the editor pane in IntelliJ IDEA?

In Eclipse, I can type Ctrl+M or click the maximize icon in the editor pane to make the editor pane take up th

avatar
Nereida
0 1 0 9
asked 07 September, 2021
42 votes
26 answers
1.7K views
Copy all the lines to clipboard

Is there any way to copy all lines from open file to clipboard in VI editor. I tried yG but it's not usin

avatar
Jeff
0 1 0 9
asked 07 September, 2021
53 votes
19 answers
740 views
How do I duplicate a line or selection within Visual Studio Code?

Using Microsoft's Visual Studio Code, how do I duplicate a line of code and then move it up and down? (Si

avatar
Charis
0 1 0 9
asked 07 September, 2021
65 votes
15 answers
544 views
How do I move to end of line in Vim?

I know how to generally move around in command mode, specifically, jumping to lines, etc. But what is the comm

avatar
Trudy
0 1 0 9
asked 07 September, 2021
62 votes
21 answers
2.3K views
How to duplicate a whole line in Vim?

How do I duplicate a whole line in Vim in a similar way to Ctrl+D in IntelliJ IDEA/ Resharper or Ctrl+Alt+↑/

avatar
Thurman
0 1 0 9
asked 07 September, 2021
52 votes
3 answers
1.1K views
Why does Python's hash of infinity have the digits of π?

The hash of infinity in Python has digits matching pi: >>> inf = float('inf') >>>

avatar
Xavier
0 1 0 9
asked 07 September, 2021
65 votes
21 answers
2.9K views
Remote origin already exists on 'git push' to a new repository

I have my project on GitHub at some location, [email protected]:myname/oldrep.git. Now I want to push all my cod

avatar
Thurman
0 1 0 9
asked 07 September, 2021
57 votes
30 answers
1.3K views
SSH Key - Still asking for password and passphrase

I've been somewhat 'putting up' with Github always asking for my username and password when I c

avatar
Dario
0 1 0 9
asked 07 September, 2021
51 votes
14 answers
1.8K views
Calculate RSA key fingerprint

I need to do the SSH key audit for GitHub, but I am not sure how do find my RSA key fingerprint. I originally

avatar
Bryan
0 1 0 9
asked 07 September, 2021
55 votes
16 answers
1.9K views
How to remove a directory from git repository?

I have 2 directories on my GitHub repository. I'd like to delete one of them. How could I do that without

avatar
Venice
0 1 0 9
asked 07 September, 2021
57 votes
26 answers
1.2K views
Git push requires username and password

I cloned a Git repository from my GitHub account to my PC. I want to work with both my PC and laptop, but wit

avatar
Roger
0 1 0 9
asked 07 September, 2021
55 votes
24 answers
1.3K views
Is there a way to cache https credentials for pushing commits?

I recently switched to synchronizing my repositories to https:// on GitHub (due to firewall issues), and it as

avatar
Denese
0 1 0 9
asked 07 September, 2021
68 votes
9 answers
1.1K views
How does "cat << EOF" work in bash?

I needed to write a script to enter multi-line input to a program (psql). After a bit of googling, I found th

avatar
Eddie
0 1 0 9
asked 07 September, 2021
56 votes
9 answers
2K views
Redirect all output to file in Bash

I know that in Linux, to redirect output from the screen to a file, I can either use the > or tee. How

avatar
Cortez
0 1 0 9
asked 07 September, 2021
50 votes
30 answers
2.1K views
Pipe to/from the clipboard in a Bash script

Is it possible to pipe to/from the clipboard in Bash? Whether it is piping to/from a device handle or using an

avatar
Suzan
0 1 0 9
asked 07 September, 2021
60 votes
10 answers
1.8K views
How to redirect output to a file and stdout

In bash, calling foo would display any output from that command on the stdout. Calling foo > output would

avatar
Kurtis
0 1 0 9
asked 07 September, 2021
56 votes
27 answers
498 views
How to count lines in a document?

I have lines like these, and I want to know how many lines I actually have... 09:16:39 AM all 2.00 0.0

avatar
Luis
0 1 0 9
asked 07 September, 2021
65 votes
15 answers
1.2K views
Looping through the content of a file in Bash

How do I iterate through each line of a text file with Bash? With this script: echo "Start!" for p in (pepti

avatar
Eddie
0 1 0 9
asked 07 September, 2021
58 votes
30 answers
729 views
How to change the output color of echo in Linux

I am trying to print a text in the terminal using echo command. I want to print the text in a red color. How

avatar
Dusty
0 1 0 9
asked 07 September, 2021
58 votes
11 answers
980 views
How do you push a tag to a remote repository using Git?

I have cloned a remote Git repository to my laptop, then I wanted to add a tag so I ran git tag mytag master

avatar
Robt
0 1 0 9
asked 07 September, 2021