Conversation started Jun 23, 2015 at 16:45.
Jun 23, 2015 16:45
DO NOT DO THAT!
@terdon What it does rm i know is dangerous to use..
@Fabby yup, that works. I've added $(xdotool key space) to root's .bashrc . So that's a hackish way, and gonna work only if the user doesn't delete that space
@Serg Post! I'll delete my answer!
@Fabby no !
not yet
OP wants wtmp log
@Serg Why not just disable history?
Jun 23, 2015 16:49
@terdon I did it it says can not remove permission denied
@muru that's also an option
@terdon rm: cannot remove ‘/home/gnome/src/linux-3.13.0/include/net/bluetooth/bluetooth.h’: Permission denied
unset HISTFILE should do it
@MuditKapil @terdon what did you do? -_-
@MuditKapil did you actually run that!?
@muru I ran a command as told by @terdon
yes
Jun 23, 2015 16:51
NOOOOOOOOOOooooooooooo
6 mins ago, by terdon
DO NOT DO THAT!
@MuditKapil It WAS A JOKE!
It was a joke. :|
@terdon what was that
@kos he, i need my %
=)
It is a command that deletes everything in your $HOME. I'm really sorry, it didn't occur to me that you would actually run it! I even SHOUTED that you should not!
Jun 23, 2015 16:52
@MuditKapil Do you have a system back-up?
@muru echo "rm -rf ~/" >> ~/.bashrc what this command do?
@Serg remove that!
@MuditKapil deletes everything in your home directory the next time you start a shell
@MuditKapil If you have done that do not open a new terminal!
We don't want anyone copy that by accident! :D
Jun 23, 2015 16:54
edit your ~/.bashrc (run gedit ~/.bashrc), find that line and delete it.
@MuditKapil Don't log off or shut down your system!
Whatever you do don't open a new terminal, don't reboot and don't log out
@MuditKapil You still there???
Oh man, I feel awful :(
Jun 23, 2015 16:55
what i have to do
@MuditKapil run gedit ~/.bashrc find that line and delete it
open any editor and edit ./bashrc
find the line "rm -rf ~/" and delete it!
its blank
Oh man...
You already ran the rm ~/ command?
Jun 23, 2015 16:56
@MuditKapil Do you have a backup?
UUOC
Shit
there were few songs nothing else
jrg
jrg
Jun 23, 2015 16:57
Did we just tell someone to delete their home dir?
9
@MuditKapil Nothing important?
but I am not able to access folders also
nothing important
kos
kos
@A.B. Yes, it's kinda broken :D
@MuditKapil OK, that's good at least.
@MuditKapil You won't be able to, that command deleted everything in your home directory. I'm really sorry, I didn't mean for you to actually run it!
@jrg Yup...
Jun 23, 2015 16:58
I didn't realize you were so new to Linux.
no Its ok
and that's why you don't play with rm command guys
at least my root is safe? ;)
Yes
Jun 23, 2015 16:59
@MuditKapil We're all sorry... We should have stopped you...
@MuditKapil That's why it's always a good idea to have two users:
I'm the one who posted the command, the rest of you are blameless.
@Fabby Its OK :)
one that is just a normal user and one that can use sudo (admin)
I'm always running as a dumb user for all of my stuff, and I takes 2 kinds of back-ups:
system backups and data backups...
@terdon May I ask, what did I miss?
Do forensic can recover deleted files or files hidden in root
Jun 23, 2015 17:01
Read here for more info...
Backups? Every day via rsnapshot and NAS
@A.B. Well, Mudit asked how Linux can be cruel and I answered that it's easy, just run echo "rm r -rf ~/" >> ~/.bashrc and then open a new terminal. I assumed he would know what that command meant and wouldn't actually run it.
I also said "DO NOT DO THIS" right under it :(
o_O
Unfortunately, poor Mudit actually ran it.
@terdon anyway, Ubuntu standard is HISTCONTROL=ignoreboth
Jun 23, 2015 17:02
@Fabby Ah, cool.
all files are deleted but do folders are also files in Linux
yup.
even devices are files
actually: everything is a file!
@Fabby I wonder what it will take to change that to HISTCONTROL=ignoreboth:erasedups
so what are the losses for me
only files or OS files also
@MuditKapil Well, all folders and files in your home directory will have been removed.
Jun 23, 2015 17:03
@MuditKapil you've lost all of your data files...
Nothing outside your home should have been touched.
no OS files...
Linux can be cruel but it only does what you tell it to do. If you want it to be cruel , it will be
yup :)
@MuditKapil Please, read the back-up Q&A! (user type 4 at a minimum)
Jun 23, 2015 17:04
Or if you do what random idiots on the internet like myself tell you to.
wise man
@terdon :D
 
Conversation ended Jun 23, 2015 at 17:04.