Skip to content

Latest commit

 

History

History
103 lines (53 loc) · 1.77 KB

reboot_statistics.md

File metadata and controls

103 lines (53 loc) · 1.77 KB
layout title tags
manual
reboot - Statistics of command combinations using semicolon
statistic

Before

The commands before reboot: Execute the given command before reboot.

Command percentage
echo 13%
nc 13%
batch 13%
w 13%
sudo 6%
su 6%
sed 6%
name 6%
hostname 6%
host 6%
mv 6%

After

The commands after reboot: Execute the given command after reboot.

Command Percentage

Related Scenarios

Below are the scenarios for all command combinations above.

The description in the table is referenced from and can be used to search the one-line-command or the scripts in the website of CommandLineFu.

Execute echo before reboot

  • Boot another OS at next startup
  • Reboot as a different OS in Grub

Execute nc before reboot

  • Boot another OS at next startup
  • Reboot as a different OS in Grub

Execute batch before reboot

  • Boot another OS at next startup
  • Reboot as a different OS in Grub

Execute w before reboot

  • Performance tip: compress /usr/
  • A DESTRUCTIVE command to render a drive unbootable

Execute sudo before reboot

  • Rename your Raspberry Pi

Execute su before reboot

  • Rename your Raspberry Pi

Execute sed before reboot

  • Rename your Raspberry Pi

Execute name before reboot

  • Rename your Raspberry Pi

Execute hostname before reboot

  • Rename your Raspberry Pi

Execute host before reboot

  • Rename your Raspberry Pi

Execute mv before reboot

  • Performance tip: compress /usr/