Tags: perl cheatsheet programming scripting
]]>Tags: cfengine cheatsheet pcre regex
]]>0 | Go into boot prompt (OK). |
1 | Put the system in system administrator mode. All file systems are mounted. Only a small set of essential kernel processes are left running. This mode is for administrative tasks such as installing optional utility packages. All files are accessible and no users are logged in on the system. |
2 | Put the system in multi-user mode. All multi-user environment terminal processes and daemons are spawned. This state is commonly referred to as the multi-user state. |
3 | Start the remote file sharing processes and dae mons. Mount and advertise remote resources. Run level 3 extends multi-user mode and is known as the remote-file-sharing state. |
4 | Is available to be defined as an alternative multi-user environment configuration. It is not necessary for system operation and is usually not used. |
5 | Shut the machine down so that it is safe to remove the power. Have the machine remove power, if possible. |
6 | Stop the operating system and reboot to the state defined by the initdefault entry in /etc/inittab. |
|
Reboot and issue boot -x (boot to non-cluster mode) at boot prompt. |
|
Reboot and issue `boot -xs` (single user, non-cluster mode) at boot prompt. |
|
Reboot and issue boot -r (reconfigure) at boot prompt. |
Tags: solaris sun oracle cheatsheet
]]>apt-get -b source
apt-get build-dep
apt-get source
auto-apt run
apt-file list
dpkg -l
apt-get --purge remove
http://www.debian.org/distrib/packages
apt-cache search
apt-cache depends
apt-cache show
apt-file search
COLUMNS=132 dpkg -S
apt-cache showsrc
apt-file update
Tags: debian apt cheatsheet
]]>ctrl-q
bg <job number>
fg <job number>
ctrl-y
ctrl-z
!66
!!
!$
!*
history -c
history -d <number>
find -type f -name "*.rpmnew" | sed 's/\(^.*\)\(\.rpmnew\)$/mv -f \1\2 \1/' |sh
find /path -name "*.*" -exec | perl -pi -e 's///g' {} \;
set -o vi
Now esc to enter command mode where vi keys
work. Pressing enter returns to normal mode.Tags: shell cli cheatsheet
]]>