List of dangerous Unix command


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers List of dangerous Unix command
# 1  
Old 02-04-2005
List of dangerous Unix command

Hi Guys,

I wonder if one of you would have a list of dangerous commands on unix.

Regards
# 2  
Old 02-04-2005
Thats a strange request...Why do you ask?
# 3  
Old 02-04-2005
Quote:
As such there is no command that a user
is forbid to use.
Sorry!! that should read:
As such there is no command that a user
is forbid to use(that excludes root commands)
# 4  
Old 02-04-2005
Quote:
Originally Posted by encrypted
I believe no command in unix is dangerous if only you know
what you are doing!!

I believe that no command in unix is safe if you are signed on as (or su'ed to) to root.

cal > /dev/mem Smilie
# 5  
Old 02-04-2005
Quote:
Originally Posted by encrypted
I believe no command in unix is dangerous if only you know
what you are doing!!
I'm not too sure I agree with that assertion. I certainly know how to use "find" but one careless keystroke will ruin your day.

For example:
This removes every file from the current directory on.
Code:
find ./ * -exec rm {}  \;

And:
This also removes removes every file from the current directory plus every file from the root directory forward! Smilie
Code:
find . / * -exec rm {}  \;
      ^ notice the space between "." and "/".

Thomas
# 6  
Old 02-04-2005
Quote:
Originally Posted by dangral
Thats a strange request...Why do you ask?
In fact we are monitoring operations on Unix servers and we would like to track all dangerous commands.
# 7  
Old 02-05-2005
Quote:
Originally Posted by JBB873
Hi Guys,

I wonder if one of you would have a list of dangerous commands on unix.

Regards
This request would be easier to respond to if you simply listed the "dangers" you were concerned about. The term "dangerous" is too broad and vague.

What "dangers" are you concerned about?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Need help with UNIX command to get the latest file from list of files with timestamp

Hi All, I have list of files like below with name abcxyz.timestamp. I need a unix command to pick the latest file from the list of below files. Here in this case the lates file is abcxyz.20190304103200. I have used this unix command "ls abcxyz*|tail -1" but i heard that it is not the appropriate... (2 Replies)
Discussion started by: rakeshp
2 Replies

2. UNIX for Beginners Questions & Answers

UNIX command to display Owner,Group,Root and Subdirectories list

Hi Team, Am a newbie to Unix. As I would like to see the Server Name,Owner Name ( not numeric form), Group Name ( not numeric ID), ROOT path. I would like to send this list as an attachment to my personal mail. Can any one please help me out to to resolve this . Here is the sample result... (6 Replies)
Discussion started by: vasuvv
6 Replies

3. War Stories

Dangerous rm -rf command

Hello All, I am posting a intresting story which is posted by Mark Brader but actual story is from Mario Wolczko. Original link is here Thanks, R. Singh (4 Replies)
Discussion started by: RavinderSingh13
4 Replies

4. 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

5. 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

6. Shell Programming and Scripting

Menu list in Unix csh - command not found

Hello, im taking a class of Unix and i dont really know much about it, im trying to create a list of menu a user would select from and im very lost. Basically it will have 5 options, the user will chose from: 1. list files in the pwd 2. display date and time 3. is the file file or directory 4.... (5 Replies)
Discussion started by: morava
5 Replies

7. 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

8. UNIX for Dummies Questions & Answers

list out a file using unix command

Hi, Iam a new member of this group I have got one issue I wanna to find out one file like *.pll in a remote server using unix command i tried giving ls but it wont work acc to my expectation since ls list out the file only in a particular directory eg in C DRIVE I SHUD BE ABLE TO... (2 Replies)
Discussion started by: dmerin
2 Replies

9. Shell Programming and Scripting

command unix to list all files created since n month ago

Hello, I want to list all files that were created since 3 month ago. it exist a unix command to do it ? thank you (8 Replies)
Discussion started by: yacsil
8 Replies
Login or Register to Ask a Question