terminal

SCP says file has downloaded, but the file does not appear

 ̄綄美尐妖づ 提交于 2021-02-04 19:41:45
问题 I am using ssh to work on a remote server, however when I try to download a file using scp in this format: scp name@website.com:somefile.zip ~/Desktop It asks me for my password, and shows this: somefile.zip 100% 6491 6.3KB/s 00:00 however, this file never appears on my desktop. Any help 回答1: I think that you are logging into the remote machine using ssh and then running the command on the remote machine. You should actually be running the command without logging into your remote server first

SCP says file has downloaded, but the file does not appear

不羁的心 提交于 2021-02-04 19:39:06
问题 I am using ssh to work on a remote server, however when I try to download a file using scp in this format: scp name@website.com:somefile.zip ~/Desktop It asks me for my password, and shows this: somefile.zip 100% 6491 6.3KB/s 00:00 however, this file never appears on my desktop. Any help 回答1: I think that you are logging into the remote machine using ssh and then running the command on the remote machine. You should actually be running the command without logging into your remote server first

Bash script check string for uppercase letter

亡梦爱人 提交于 2021-02-04 18:09:05
问题 I am trying to check a string for any Uppercase letter. my code shows NO UPPER for any input, may it be "sss", "Sss", "SSS" if [[ "$pass" =~ [^a-zA-Z0-9] ]] then echo "Upper found" else echo "no upper" fi 回答1: [^a-zA-Z0-9] means anything except for a-z , i.e. lowercase letters, A-Z , i.e. uppercase letters, and 0-9 , i.e. digits. sss , Sss , SSS all contain just letters, so they can't match. [[ $password =~ [A-Z] ]] is true if the password contains any uppercase letter. You should set LC_ALL

Change the number of lines shown in Visual Studio Code's built-in Terminal

拟墨画扇 提交于 2021-02-04 11:10:09
问题 I'm using the terminal which is integrated in Visual Studio Code. When I scroll up it shows the previous lines, but they are not enough for me. I need to see more lines. How can I increase the total number of lines that are displayed by the terminal in VS Code? 回答1: There is a way to change number of lines for that you have to go: file-->preferences-->configuration Then, it will open file settings.json you should to search Integrated terminal and then you search for terminal.integrated

Change the number of lines shown in Visual Studio Code's built-in Terminal

扶醉桌前 提交于 2021-02-04 11:09:59
问题 I'm using the terminal which is integrated in Visual Studio Code. When I scroll up it shows the previous lines, but they are not enough for me. I need to see more lines. How can I increase the total number of lines that are displayed by the terminal in VS Code? 回答1: There is a way to change number of lines for that you have to go: file-->preferences-->configuration Then, it will open file settings.json you should to search Integrated terminal and then you search for terminal.integrated

Change the number of lines shown in Visual Studio Code's built-in Terminal

倖福魔咒の 提交于 2021-02-04 11:09:25
问题 I'm using the terminal which is integrated in Visual Studio Code. When I scroll up it shows the previous lines, but they are not enough for me. I need to see more lines. How can I increase the total number of lines that are displayed by the terminal in VS Code? 回答1: There is a way to change number of lines for that you have to go: file-->preferences-->configuration Then, it will open file settings.json you should to search Integrated terminal and then you search for terminal.integrated

Change the number of lines shown in Visual Studio Code's built-in Terminal

醉酒当歌 提交于 2021-02-04 11:09:12
问题 I'm using the terminal which is integrated in Visual Studio Code. When I scroll up it shows the previous lines, but they are not enough for me. I need to see more lines. How can I increase the total number of lines that are displayed by the terminal in VS Code? 回答1: There is a way to change number of lines for that you have to go: file-->preferences-->configuration Then, it will open file settings.json you should to search Integrated terminal and then you search for terminal.integrated

History command works in a terminal, but doesn't when written as a bash script

帅比萌擦擦* 提交于 2021-02-04 06:07:00
问题 I have a simple one-liner that works perfectly in the terminal: history | sort -k2 | uniq -c --skip-fields=1 | sort -r -g | head What it does: Gives out the 10 most frequently used commands by the user recently. (Don't ask me why I would want to achieve such a thing) I fire up an editor and type the same with a #!/bin/bash in the beginning: #!/bin/bash history | sort -k2 | uniq -c --skip-fields=1 | sort -r -g | head And say I save it as script.sh . Then when I go to the same terminal, type

History command works in a terminal, but doesn't when written as a bash script

ε祈祈猫儿з 提交于 2021-02-04 06:04:52
问题 I have a simple one-liner that works perfectly in the terminal: history | sort -k2 | uniq -c --skip-fields=1 | sort -r -g | head What it does: Gives out the 10 most frequently used commands by the user recently. (Don't ask me why I would want to achieve such a thing) I fire up an editor and type the same with a #!/bin/bash in the beginning: #!/bin/bash history | sort -k2 | uniq -c --skip-fields=1 | sort -r -g | head And say I save it as script.sh . Then when I go to the same terminal, type

History command works in a terminal, but doesn't when written as a bash script

。_饼干妹妹 提交于 2021-02-04 06:04:33
问题 I have a simple one-liner that works perfectly in the terminal: history | sort -k2 | uniq -c --skip-fields=1 | sort -r -g | head What it does: Gives out the 10 most frequently used commands by the user recently. (Don't ask me why I would want to achieve such a thing) I fire up an editor and type the same with a #!/bin/bash in the beginning: #!/bin/bash history | sort -k2 | uniq -c --skip-fields=1 | sort -r -g | head And say I save it as script.sh . Then when I go to the same terminal, type