Sponsored Content
Full Discussion: Dangerous rm -rf command
The Lounge War Stories Dangerous rm -rf command Post 302937753 by wisecracker on Monday 9th of March 2015 04:19:47 AM
Old 03-09-2015
Quote:
Originally Posted by bakunin
Here is (part of) one of the scripts passed from a project to us. Gladly we found out readily. Names, places and details of the script have been changed to protect the guilty.....:

Code:
var="/some/place"
rm -rf "${vra}/"*

Do not try this at home!

bakunin
OUCH!

Took me a couple of seconds to see the typo...
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

List of dangerous Unix command

Hi Guys, I wonder if one of you would have a list of dangerous commands on unix. Regards (8 Replies)
Discussion started by: JBB873
8 Replies

2. SuSE

inconsistent ls command display at the command prompt & running as a cron job

Sir, I using the following commands in a file (part of a bigger script): #!/bin/bash cd /opt/oracle/bin ls -lt | tail -1 | awk '{print $6}' >> /tmp/ramb.out If I run this from the command prompt the result is: 2007-05-16 if I run it as a cron job then... (5 Replies)
Discussion started by: rajranibl
5 Replies

3. HP-UX

Upgrade serviceguard can be "dangerous"?

Hi everybody! We have to upgrade serviceguard 11.14 to 11.16, so I get PHSS_36898 patch from HP. Is it necessary to uninstall serviceguard 11.14 before install this patch? (I think so, but i am not sure). Do you know if is "dangerous" this kind of upgrade? Any suggestions about? Thx in... (1 Reply)
Discussion started by: kaugrs
1 Replies

4. Shell Programming and Scripting

assign a command line argument and a unix command to awk variables

Hi , I have a piece of code ...wherein I need to assign the following ... 1) A command line argument to a variable e.g origCount=ARGV 2) A unix command to a variable e.g result=`wc -l testFile.txt` in my awk shell script When I do this : print "origCount" origCount --> I get the... (0 Replies)
Discussion started by: sweta_doshi
0 Replies

5. AIX

AIX:Command to get netaddress/subnet address command in IPv4/IP6

AIX:Command to get netaddress/subnet address command in IPv4/IP6 Can anybody help us with a command to retrieve netaddress/subnet address command in IPv4/IP6 on aix machine. net/subnet address is in the format 172.16.212.0(signifies all 255 machines in an IPv4 network) (2 Replies)
Discussion started by: rookie8278
2 Replies

6. Linux

Is umount -l dangerous?

I had a umount busy issue, that the usual fuser -mk did not solve, I did a umount -l and was able to unmount the device, I then got in trouble by the storage team staff: Here was a snippet of their response: Using "umount -l" is a potentially dangerous act. The command combination for a lazy... (8 Replies)
Discussion started by: pastajet
8 Replies

7. Shell Programming and Scripting

Need help! command working ok when executed in command line, but fails when run inside a script!

Hi everyone, when executing this command in unix: echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error. here is content of my script: tdbsrvr$ vi hc.sh "hc.sh" 22 lines, 509... (4 Replies)
Discussion started by: 4dirk1
4 Replies

8. Shell Programming and Scripting

List of dangerous shell commands

Hello, I have a Application which needs to run shell scripts in a elevated state (root) for system interrogation. So I execute each script using bash -C. This has worked really well. I now want to add another layer of security, I cant inspect each of the scripts before they get deployed to the... (4 Replies)
Discussion started by: tjones1105
4 Replies

9. UNIX for Dummies Questions & Answers

passing command output from one command to the next command in cshell

HI Guys, I hope you are well. I am trying to write a script that gets executed every time i open a shell (cshell). I have two questions about that 1) I need to enter these commands $ echo $DISPLAY $ setenv $DISPLAY output_of_echo_$display_command How can i write a... (2 Replies)
Discussion started by: kaaliakahn
2 Replies
Holotz's Castle Editor(6)												 Holotz's Castle Editor(6)

NAME
holotz-castle-editor - editor for holotz-castle game SYNOPSIS
holotz-castle-editor [-f] [-w] [--fps nn] [-mWWxHHxBPP] [-r RR] [-c CC] [-t theme] <story> <nr> DESCRIPTION
A great mystery is hidden beyond the walls of Holotz's Castle. Will you be able to help Ybelle and Ludar escape alive from the castle? Use the editor to design new levels for this game! USAGE
You can use the following keys while working with the editor: - Page Down: Next level in the story (or a new one if it doesn't exist). - Page Up: Previous level in the story. - 'c': Increase the number of columns from the right. - CTRL-'c': Increase the number of columns from the left - SHIFT-'c': Decrease the number of columns from the right. - SHIFT-CTRL-'c': Decrease the number of columns from the left. - 'r': Increase the number of rows from below. - CTRL-'r': Increase the number of rows from above. - SHIFT-'r': Decrease the number of rows from below. - SHIFT-CTRL-r: Decrease the number of rows from Above. - '+': Increase level time. - '-': Decrease level time. - '1': Select 'floor' tool. - '2': Select 'continuous floor' tool. - '3': Select 'stairs' tool. - '4': Select 'bar' tool. - '5': Select 'breakable floor' tool. - '6': Select 'key' tool. - '7': Select 'rope' tool - '8': Select 'starting character's position' tool. - '9': Select 'exit position' tool. - '0': Select 'enemy' tool. - 's': Save. - CTRL-'q': Quit editor. - Arrow keys: Move around in the map. - 'g': Increase gravity strength. - SHIFT-'g': Decrease gravity strength. - 'x': Increase main character's speed in axis. - SHIFT-'x': Decrease main character's speed in X axis. - 'y': Increase main character's speed in Y axis. - SHIFT-'y': Decrease main character's speed in Y axis. - 'j': Increase the number of cells that the player can jump vertically. - SHIFT-'j': Decrease the number of cells that the player can jump vertically. Other features: - When adding an item to the map, if you press CTRL key it is adjusted to a cell. - To adjust a rope's lenght, you select it and, while still pressing mouse button, press ALT key and drag the mouse vertically until get- ting the desired length. - To adjust a rope's oscillation amplitude, you must select it and, keeping mouse button pressed, press SHIFT key. Real time amplitude is not shown, as it is determined taking into account the distance in vertical to the rope when releasing mouse button. OPTIONS
These command line options are available: -f Full Screen. -w Windowed. --fps nn Run the game at nn frames per second (fps). -mWWxHHxBPP Run in video mode set by WW pixels of width, HH pixels of height and BPP bits per pixel (eg. -m640x480x16). -r RR Crete map with RR rows of height. -c CC Crete map with CC columns of width. -t theme Use theme named 'theme'. <story> <nr> Load level nr of the story called 'story'. AUTHOR
This manual page was written for the Debian GNU/Linux system by Miriam Ruiz <little_miry@yahoo.es> (but may be used by others, of course) Miriam Ruiz 28.01.2005 Holotz's Castle Editor(6)
All times are GMT -4. The time now is 12:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy