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

sudo shred command

Postby josh3366 on 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
josh3366
Level 1
Level 1
 
Posts: 9
Joined: Wed Apr 18, 2012 10:43 pm

Linux Mint is funded by ads and donations.
 

Re: sudo shred command

Postby Habitual on 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.
What's a landing but a take off in reverse?
User avatar
Habitual
Level 8
Level 8
 
Posts: 2245
Joined: Sun Nov 21, 2010 8:31 pm
Location: LM17Q-Xfce

Re: sudo shred command

Postby josh3366 on 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
josh3366
Level 1
Level 1
 
Posts: 9
Joined: Wed Apr 18, 2012 10:43 pm


Return to Other topics

Who is online

Users browsing this forum: No registered users and 7 guests