centos7 - Linux command line rm /* -
centos 7, sudo su. not pro in linux command line. wanted delete files inside current directory. , putted:
rm /* after many commands doesn't worked (ls example).
command did? , how might harm system?
you removed on hard drive! don't run commands super user if don't know , do! rm command removes something. / means root directory. in unix-based os linux, directories this:
/ ├── bin -> usr/bin ├── boot ├── dev ├── etc ├── home ├── lib -> usr/lib ├── lib64 -> usr/lib ├── lost+found ├── media ├── mnt ├── opt ├── proc ├── root ├── run ├── sbin -> usr/binvar ├── srv ├── sys ├── tmp ├── usr └── var and of them inside root directory show /
and should * in terminal means "everything" (code 42).
so asked remove "everything inside / directory" inside linux os deleted (exept if stoped before process compeleted)
anyway, insatall fresh centos , startover. , thank god didn't write this:
rm -rf /* try learn commands websites , before entering new command, use man read it's manual. example command used directory tree tree , can read using:
man tree
Comments
Post a Comment