02-04-2019
I misused: "sudo rm -rf /*"
Hey Guys,
I have literally shot my myself in the head...
I tried to use "
sudo rm -rf /*" in Terminal (OSX); Unfortunately, I forgot cd Desktop.
After I realized it, I was like
After that i tried exit; but rm was a background command, so this did not work either...
I came to late for sudo kill 1...
It seems like half of the drive is deleted, Even OS is corrupted. Is there a Way restoring the Data from an SSD card?
Your sincerely,
Niclas
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
2. UNIX for Dummies Questions & Answers
Hi! I'm very new to unix, so please keep that in mind with the level of language used if you choose to help :D Thanks!
When attempting to use sudo on and AIX machine with oslevel 5.1.0.0, I get the following error:
exec(): 0509-036 Cannot load program sudo because of the following errors:... (1 Reply)
Discussion started by: Chloe123
1 Replies
3. UNIX for Dummies Questions & Answers
HI All,
I am using solaris
i created a user adam and updated his permissions
in vi sudoers file as follows
adam ALL=(ALL) NOPASSWORD: ALL
...........
when i create user by logging as sudo user .
$ sudo useradd -d /home/kalyan -m -s /bin/sh kalyan
sudo: not found
... (6 Replies)
Discussion started by: kalyankalyan
6 Replies
4. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
5. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
6. Shell Programming and Scripting
Hi All,
i am trying to ssh to a remote machine and execute certain command to remote machine through script.
i am able to ssh but after its getting hung at the promt and after pressing ctrl +d i am gettin the out put as
expect: spawn id exp5 not open
while executing
"expect "$" {... (3 Replies)
Discussion started by: Siddharth shivh
3 Replies
7. Shell Programming and Scripting
I've found this script part on the stackoverflow:
if ; then
sudo bash "$0" "$@";
exit "$?";
fi
I realized that sudo bash "$0" "$@"; is the only needed for me.
But the strange thing happens when I move this line outside the IF statement:
sudo bash "$0" "$@"; stops the... (9 Replies)
Discussion started by: boqsc
9 Replies
8. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
9. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
LEARN ABOUT MOJAVE
bioutil
bioutil(1) BSD General Commands Manual bioutil(1)
NAME
bioutil -- tool for viewing/changing Touch ID configuration and listing/deleting enrolled fingerprints
SYNOPSIS
bioutil {-r | -w [-f { 0 | 1 }] [-u { 0 | 1 }] [-a { 0 | 1 }]} | [-c] | [-p] | [-d <uid>] [-s]
DESCRIPTION
bioutil provides the possibility of viewing and changing Touch ID configuration, both system-wide and user-specific. It also allows listing
and deleting enrolled fingerprints.
OPTIONS
-r, --read
Read Touch ID configuration.
-w, --write
Write Touch ID configuration.
-s, --system
Indicates that system-wide configuration is to be read/written (user-specific configuration is the default) or that a system-wide
list/delete operation is to be performed.
-f, --function
Enables (1) or disables (0) overall Touch ID functionality (system-wide configuration only).
-u, --unlock
Enables (1) or disables (0) Touch ID for unlock.
-a, --applepay
Enables (1) or disables (0) Touch ID for ApplePay (user-specific configuration only).
-c, --count
Provides number of enrolled fingerprints of the current user or of all users (when run with -s as an administrator)
-p, --purge
Deletes all enrolled fingerprints of the current user or of all users (when run with -s as an administrator)
-d, --delete
Deletes all enrolled fingerprints of the user with given user ID (must be run as an administrator)
EXAMPLES
bioutil -r
Reads Touch ID configuration for the current user.
bioutil -r -s
Reads system-wide Touch ID configuration.
bioutil -w -u 1
Enables Touch ID for unlock for the current user.
sudo bioutil -w -s -u 0
Disables Touch ID for unlock for the whole system.
bioutil -c
Prints the number of enrolled fingerprints of the current user.
bioutil -p
Deletes all enrolled fingerprints of the current user.
sudo bioutil -c -s
Prints numbers of enrolled fingerprints of all enrolled users.
sudo bioutil -p -s
Deletes all fingerprints from the system.
sudo bioutil -s -d 501
Deletes all fingerprints of user 501.
Darwin May 31, 2019 Darwin