Portál AbcLinuxu, 1. května 2025 10:26
Článek o tom, jak zbytečně složitý je vypínací dialog k Windows Vista bych málem přehlédl. Nepovažoval jsem to za důležité, mé Ubuntu má něco podobného (a navíc mám rozhašenou hibernaci). Autor postu postupně redukuje všechny možné volby (vypnout, uspat, hibernovat, odhlásit...), až mu zbude jedno univerzální tlačítko "Bye".
So now we've got exactly one log off button left. Call it "b'bye". When you click b'bye, the screen is locked and any RAM that hasn't already been copied out to flash is written. You can log back on, or anyone else can log on and get their own session, or you can unplug the whole computer.
Co jsem ale nepřehlédl, je vyjádření bývalého programátora Moftu, který tuhle konkrétní věc implementoval. Popisuje, jak probíhal proces vývoje Vist. Vyvíjet takhle velký soft je fakt síla. Obzvláště mě dojal centrální hierarchický repozitář.
In small programming projects, there's a central repository of code. (...) In Windows, this model breaks down simply because there are far too many developers to access one central repository -- among other problems, the infrastructure just won't support it. So Windows has a tree of repositories: developers check in to the nodes, and periodically the changes in the nodes are integrated up one level in the hierarchy. At a different periodicity, changes are integrated down the tree from the root to the nodes. In Windows, the node I was working on was 4 levels removed from the root. The periodicity of integration decayed exponentially and unpredictably as you approached the root so it ended up that it took between 1 and 3 months for my code to get to the root node, and some multiple of that for it to reach the other nodes. It should be noted too that the only common ancestor that my team, the shell team, and the kernel team shared was the root.
Doporučuji přečíst celý článek, velmi poučné.
Tiskni
Sdílej:
Restart can be eliminated. 95% of the time you need this it's because of an installation which prompted you to restart, anyway. For the other cases, you can just turn the power off and then turn it on again. Another option goes away.Ten člověk je blázen
shutdown -r now
. halt
a reboot
. halt
a reboot
neobtěžují s vypínáním démonů.
halt
a reboot
zažil coby linky na shutdown
. Takže generalizovat "halt
a reboot
ne" je stejně nesmyslné jako psát "halt
a reboot
jsou vždy to pravé". Nejlepší je zjistit si, co je správný postup na tom konkrétním systému, který používáte.
-rwxr-xr-x 1 root root 13040 2006-08-25 12:47 /sbin/halt* lrwxrwxrwx 1 root root 4 2006-08-25 12:47 /sbin/reboot -> halt* -rwxr-xr-x 1 root root 21408 2006-08-25 12:47 /sbin/shutdown*
# sync; halta je to
Tlačítko pro restart skutečně potřebují jenom widláci a dualbooťáci. Zbytku buď vyskočí po upgradu jádra ikona v trayi nebo použijíA no jistě. Tak si představte, že jste právě přišel o parametrshutdown -r now
.
-r
a musíte, jak navrhuje Joel, nejdřív udělat shutdown -h
a pak počítač zase zapnout ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.