Answer the question
In order to leave comments, you need to log in
How to Set Proxy for Command Line in Linux?
Briefly explain the situation.
1. I scooped up information from archwiki - tyts
2. I read an article on ShellHack - tyts
3. I asked a question earlier on the Toaster and it still torments me - tyts
And so, in my "~/.bashrc" it is written like this:
# Включить Proxy
function setproxy() {
export http_proxy=http://proxy_server:port/
export https_proxy=$http_proxy
export ftp_proxy=$http_proxy
export rsync_proxy=$http_proxy
export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"
}
# Отключить Proxy
function unsetproxy() {
unset {http,https,ftp,rsync_proxy,no_proxy}_proxy
}
. ~/.bashrc
[[email protected]_pavilion_g6 ~]$ sudo pacman -Syu
[sudo] пароль для thenovalive: **********
:: Обновление баз данных пакетов...
ошибка: не удалось получить файл 'core.db' из mirror.yandex.ru : Connection timed out after 10001 milliseconds
ошибка: не удалось получить файл 'core.db' из archlinux.polymorf.fr : Connection timed out after 10001 milliseconds
^C
Interrupt signal received
[[email protected]_pavilion_g6 ~]$
Answer the question
In order to leave comments, you need to log in
in my "~/.bashrc" it is written like this:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question