Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8027697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:53:17+00:00 2026-06-04T23:53:17+00:00

WARNING: Dangerous script. Do not run from your command line! Saw this in a

  • 0

WARNING: Dangerous script. Do not run from your command line!

Saw this in a company joke email. Can someone explain to me why this bash script is more dangerous than a normal ‘rm -rf’ command?:

nohup cd /; rm -rf * > /dev/null 2>&1 &

Particularly, why is nohup used and what are the elements at the end for?

WARNING: Dangerous script. Do not run from your command line!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T23:53:19+00:00Added an answer on June 4, 2026 at 11:53 pm

    2>&1 takes stderr (file handle 2) and redirects to stdout (file handle 1). & by itself places the rm command in the background. nohup allows a job to keep running even after the person who started it logs out.

    In other words, this command does its best to wipe out the entire file system, even if the user ragequits their terminal/shell.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get this warning saying that tmpnam is dangerous, but I would prefer to
How can I suppress following warning from gcc linker: warning: the use of 'mktemp'
Warning: In DOM Core 1, 2 and 3, Attr inherited from Node. This is
Warning: This is inherited legacy code that was initially put together in the early
warning: passing argument 1 of 'bsearch' makes pointer from integer without a cast and
Warning: This question has been heavily edited. I tried my best to guess the
When i use gets function,gcc gives me a warning: warning:the `gets' function is dangerous
Warning 1 D:\MyPath\SomeAscx.cs: ASP.NET runtime error: Could not load file or assembly 'HtmlAgilityPack, Version=1.4.0.0,
Warning: Invalid argument supplied for foreach() in /home/content/t/3/k/t3kmast3r/html/PushService.php on line 13 Warning: stream_socket_client() [function.stream-socket-client]:
I'm developing a scripting extension, similar to Greasemonkey or Chrome's content-script engine. This extension

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.