شما هنوز به سیستم وارد نشده اید.

#1 2016-01-24 20:02:37

hojy
عضو
ثبت شده: 2015-12-29
ارسال ها: 67

حذف علامت # از اول سطرهای یک فایل{حل شد}

سلام
فایل mirrorlist.pacnew رو همیشه دستی ویرایش میکنم!(لطفا نخندید)
فیلمهای آقای امیر صمیمی عزیز رو تازه میخوام دانلود کنم و ببینم.اما این ضروری بود.
چه دستوری رو وارد کنم که یه علامت # از جلوی سطرهای فایل mirrorlist
برداشته شه تا پکمن بتونه بخونه؟

آخرین ویرایش توسط hojy (2016-01-26 00:38:07)

آفلاین

#2 2016-01-24 20:27:03

ehsan_faal
عضو
از : تهران
ثبت شده: 2015-10-02
ارسال ها: 274

پاسخ: حذف علامت # از اول سطرهای یک فایل{حل شد}

[0:ehsan@manjaro:19:25:47:Desktop]$
>>>cat text 
# Configuration file for a typical Tor user
# Last updated 22 April 2012 for Tor 0.2.3.14-alpha.
# (may or may not work for much older or much newer versions of Tor.)
#
# Lines that begin with "## " try to explain what's going on. Lines
# that begin with just "#" are disabled commands: you can enable them
# by removing the "#" symbol.
#
# See 'man tor', or https://www.torproject.org/docs/tor-manual.html,
# for more options you can use in this file.
#
# Tor will look for this file in various places based on your platform:
# https://www.torproject.org/docs/faq#torrc

# Tor opens a socks proxy on port 9050 by default -- even if you don't
# configure one below. Set "SocksPort 0" if you plan to run Tor only
# as a relay, and not make any local application connections yourself.
#SocksPort 9050 # Default: Bind to localhost:9050 for local connections.
#SocksPort 192.168.0.1:9100 # Bind to this adddress:port too.

# Entry policies to allow/deny SOCKS requests based on IP address.
# First entry that matches wins. If no SocksPolicy is set, we accept
# all (and only) requests that reach a SocksPort. Untrusted users who
# can access your SocksPort may be able to learn about the connections
# you make.
#SocksPolicy accept 192.168.0.0/16
#SocksPolicy reject *
[0:ehsan@manjaro:19:25:54:Desktop]$
>>>sed -i 's/^#//' text 
[0:ehsan@manjaro:19:26:17:Desktop]$
>>>cat text 
 Configuration file for a typical Tor user
 Last updated 22 April 2012 for Tor 0.2.3.14-alpha.
 (may or may not work for much older or much newer versions of Tor.)

 Lines that begin with "## " try to explain what's going on. Lines
 that begin with just "#" are disabled commands: you can enable them
 by removing the "#" symbol.

 See 'man tor', or https://www.torproject.org/docs/tor-manual.html,
 for more options you can use in this file.

 Tor will look for this file in various places based on your platform:
 https://www.torproject.org/docs/faq#torrc

 Tor opens a socks proxy on port 9050 by default -- even if you don't
 configure one below. Set "SocksPort 0" if you plan to run Tor only
 as a relay, and not make any local application connections yourself.
SocksPort 9050 # Default: Bind to localhost:9050 for local connections.
SocksPort 192.168.0.1:9100 # Bind to this adddress:port too.

 Entry policies to allow/deny SOCKS requests based on IP address.
 First entry that matches wins. If no SocksPolicy is set, we accept
 all (and only) requests that reach a SocksPort. Untrusted users who
 can access your SocksPort may be able to learn about the connections
 you make.
SocksPolicy accept 192.168.0.0/16
SocksPolicy reject *
[0:ehsan@manjaro:19:26:19:Desktop]$

Mahatma Gandhi - The weak can never forgive. Forgiveness is the attribute of the strong

آفلاین

#3 2016-01-26 00:37:44

hojy
عضو
ثبت شده: 2015-12-29
ارسال ها: 67

پاسخ: حذف علامت # از اول سطرهای یک فایل{حل شد}

خیلی ممنون!

آفلاین

#4 2016-01-26 00:40:10

ehsan_faal
عضو
از : تهران
ثبت شده: 2015-10-02
ارسال ها: 274

پاسخ: حذف علامت # از اول سطرهای یک فایل{حل شد}

خواهش میکنم cool


Mahatma Gandhi - The weak can never forgive. Forgiveness is the attribute of the strong

آفلاین

پانوشت انجمن

پشتیبانی توسط تیم آرچ لینوکس ایران و نیرو گرفته با FluxBB