sudo shred command

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read how to get help
josh3366
Level 1
Level 1
Posts: 9
Joined: Wed Apr 18, 2012 10:43 pm

sudo shred command

Postby josh3366 » Fri Jul 20, 2012 11:47 am

hi all
am just curious when looking up sudo shred commands such as sudo shred /dev/sda -n 7 etc i am curious what just putting sudo shred /dev would do as it would shred the entire device directory i am assuming .. is there a chance it can render things such as webcams and internal devices inoperable? as i feel using the command in this fashion could quickly erase all data on multiple removable media formats along with c:

any information on the pro's and cons of this question is much appreciated

User avatar
Habitual
Level 12
Level 12
Posts: 4203
Joined: Sun Nov 21, 2010 8:31 pm
Location: Youngstown, Ohio

Re: sudo shred command

Postby Habitual » Fri Jul 20, 2012 11:50 am

It's a Destructive command what will wipe out your /dev/sda partition.

sudo is required because it's the /dev/ directory.
Windows assumes you're an idiot.
Linux demands proof of it.

josh3366
Level 1
Level 1
Posts: 9
Joined: Wed Apr 18, 2012 10:43 pm

Re: sudo shred command

Postby josh3366 » Fri Jul 20, 2012 11:56 am

i get that much i am just wondering what the result will be if i just used /dev instead of /dev/sda as the /dev refers to devices while /dev/sda points to a specific device would /dev shred the entire device list and if so is there a chance to damage devices making them inoperable


Return to “Other topics”

Who is online

Users browsing this forum: dai_trying and 1 guest