Bu ekstra çıkış hatları nelerdir?


9

Bazen bu satırlar bir komut çalıştırıldıktan sonra (rastgele) görülebilir:

[1]-  Done                    wget -c http://downloads.sourceforge.net/project/zorin-os/9/zorin-os-9-core-32.iso?r=http%3A%2F%2Fzorinos.com%2Fdownload9.html
[2]+  Done                    ts=1460659842

İlk satır komutun kendisidir ve her zaman gerçekleşmez. Ancak zaman zaman bir komut satırı uygulaması komut satırına dönmeden durur, ben enter tuşuna basana kadar; Bu satırları gösterir.

Sistemim bir hafta öncesine kadar böyle davranmadı. Bu bir sorun mu?

Yanıtlar:


20

Muhtemelen böyle bir komut verdiniz:

wget -c http://downloads.sourceforge.net/project/zorin-os/9/zorin-os-9-core-32.iso?r=http%3A%2F%2Fzorinos.com%2Fdownload9.html&ts=1460659842&something-else

Bu komut, aynı anda birden çok işlemi çalıştırmak& için kullanılan özel karakteri içerir . Bu komut üç (veya daha fazla) komut olarak yorumlanıyor:

# First command (the one that you see after [1]):
wget -c http://downloads.sourceforge.net/project/zorin-os/9/zorin-os-9-core-32.iso?r=http%3A%2F%2Fzorinos.com%2Fdownload9.html
# Second command (the one that you see after [2]):
ts=1460659842
# Third command (the one which output should be above the "Done" lines):
something-else

Daha iyi anlamanıza yardımcı olabilecek bir örnek:

# Here I'm launching three 'echo' commands, the first two in background, the third in foreground
andrea@andrea-laptop:~$ echo first & echo second & echo third
[1] 5033    # This is bash telling me that the first process was started with job number 1 and PID 5033
first       # This is the output from the first process
[2] 5034    # This is bash telling me that the second process was started with job number 2 and PID 5034
third       # This is the output from the third process
second      # This is the output from the second process
andrea@andrea-laptop:~$ 
[1]-  Done                    echo first    # This is bash telling me that the first background job has quit
[2]+  Done                    echo second   # This is bash telling me that the second background job has quit

Bu ve diğer kötü efektlerden kaçınmak için URL'leri düzgün bir şekilde teklif etmelisiniz:

wget -c 'http://downloads.sourceforge.net/project/zorin-os/9/zorin-os-9-core-32.iso?r=http%3A%2F%2Fzorinos.com%2Fdownload9.html&ts=1460659842&something-else'

6
Terminal komutlarını asla körü körüne kopyalamamanızın bir başka nedeni ... Birisi urur someurl.com/index.php&malicious-command-here yapabilir ve insanlar sadece çalıştırır ve sistemlerini kırarlar.
Nzall
Sitemizi kullandığınızda şunları okuyup anladığınızı kabul etmiş olursunuz: Çerez Politikası ve Gizlilik Politikası.
Licensed under cc by-sa 3.0 with attribution required.