[ { "cat": "arch_linux", "text": "running `pacman -Syuw` will download all pending updates to your cache without installing them, great for prepping updates in the background." }, { "cat": "arch_linux", "text": "if you ever change your kernel modules or graphics drivers, do not forget to run `mkinitcpio -P` to rebuild your initramfs." }, { "cat": "arch_linux", "text": "you can use `pacman -Fl ` to see exactly what files a package will install before you actually install it." }, { "cat": "arch_linux", "text": "need an older package version? the arch linux archive (ALA) keeps historical snapshots of official repositories." }, { "cat": "arch_linux", "text": "add `ILoveCandy` to your /etc/pacman.conf options section to turn the pacman progress bar into pac-man eating dots." }, { "cat": "arch_linux", "text": "use `pacman -Qe` to list all packages you explicitly installed, filtering out all the automatic dependencies." }, { "cat": "easter_eggs", "text": "present day, present time. hahahahaha." }, { "cat": "easter_eggs", "text": "tuturu! mayushii desu!" }, { "cat": "easter_eggs", "text": "wc lvl?" }, { "cat": "easter_eggs", "text": "your hue is cloudy." }, { "cat": "easter_eggs", "text": "i don't know everything, i just know what i know." }, { "cat": "easter_eggs", "text": "sea shanty 2 is objectively the best track." }, { "cat": "easter_eggs", "text": "courage to tell a lie." }, { "cat": "easter_eggs", "text": "modulating the cut-off frequency..." }, { "cat": "easter_eggs", "text": "buying twisted bow - 1m" }, { "cat": "easter_eggs", "text": "stay awhile and listen" }, { "cat": "easter_eggs", "text": "not even death can save you from me" }, { "cat": "easter_eggs", "text": "stone of jordan" }, { "cat": "easter_eggs", "text": "the bees are happy" }, { "cat": "easter_eggs", "text": "the ground is shaking" }, { "cat": "easter_eggs", "text": "you feel cold" }, { "cat": "easter_eggs", "text": "a foul smell from the swamp" }, { "cat": "easter_eggs", "text": "you are being hunted" }, { "cat": "easter_eggs", "text": "understand, understand, the concept of love" }, { "cat": "easter_eggs", "text": "jet set radiooooo" }, { "cat": "easter_eggs", "text": "beat is hitting the streets" }, { "cat": "easter_eggs", "text": "ararararagi-san" }, { "cat": "easter_eggs", "text": "i stuttered" }, { "cat": "easter_eggs", "text": "i said with a posed look" }, { "cat": "easter_eggs", "text": "yay, peace peace" }, { "cat": "easter_eggs", "text": "that is a black page in my history, i will never make another posed look." }, { "cat": "easter_eggs", "text": "unlimited rulebook" }, { "cat": "easter_eggs", "text": "shitsurei, kamimashita" }, { "cat": "easter_eggs", "text": "i'm platinum mad!" }, { "cat": "easter_eggs", "text": "i'd prefer to enjoy this conversation without unnecessary evangelion references" }, { "cat": "easter_eggs", "text": "the fake is of far greater value. in its deliberate attempt to be real, its more real than the real thing." }, { "cat": "easter_eggs", "text": "nyanyame nyanyajyuunyanya-do no nyarabi de nyakunyaku inyanyaku nyanyahan nyanyadai nyanynaku nyarabete nyaganyagame" }, { "cat": "easter_eggs", "text": "i know love. the convenience store was selling it. for 298 yen." }, { "cat": "easter_eggs", "text": "i don't know anything, araragi-senpai. it's you who knows." }, { "cat": "easter_eggs", "text": "i love you, senjougahara" }, { "cat": "easter_eggs", "text": "el psy kongroo" }, { "cat": "easter_eggs", "text": "i am mad scientist, its so cool! sonuvabitch!" }, { "cat": "easter_eggs", "text": "time is passing so quickly. right now, i feel like complaining to einstein." }, { "cat": "easter_eggs", "text": "relativity theory is so romantic. and so sad." }, { "cat": "easter_eggs", "text": "no one knows what the future holds. that's why its potential is infinite." }, { "cat": "easter_eggs", "text": "it's an intellectual drink for the chosen ones" }, { "cat": "easter_eggs", "text": "kurisutina!" }, { "cat": "easter_eggs", "text": "IBN 5100" }, { "cat": "easter_eggs", "text": "dominator portable psychological diagnosis and suppression system" }, { "cat": "easter_eggs", "text": "crime coefficient is over 300" }, { "cat": "easter_eggs", "text": "enforcement mode: lethal eliminator" }, { "cat": "easter_eggs", "text": "let's all love lain" }, { "cat": "easter_eggs", "text": "if you're not remembered then you never existed" }, { "cat": "easter_eggs", "text": "god is here" }, { "cat": "easter_eggs", "text": "electrical wires humming" }, { "cat": "easter_eggs", "text": "no matter where you are, everyone is always connected" }, { "cat": "easter_eggs", "text": "close the world, open the next" }, { "cat": "easter_eggs", "text": "wired sound for wired people" }, { "cat": "easter_eggs", "text": "aurora, kill yourself." }, { "cat": "easter_eggs", "text": "make a contract with me and become a magical girl!" }, { "cat": "easter_eggs", "text": "we understood nothing at all. not what it meant to wish for a miracle... nor its price." }, { "cat": "easter_eggs", "text": "homura did nothing wrong." }, { "cat": "easter_eggs", "text": "subarashii..." }, { "cat": "easter_eggs", "text": "nnaa~" }, { "cat": "easter_eggs", "text": "the curse of the abyss" }, { "cat": "easter_eggs", "text": "may your journey be filled with curses and blessings" }, { "cat": "easter_eggs", "text": "sosu" }, { "cat": "easter_eggs", "text": "my very own warm darkness" }, { "cat": "easter_eggs", "text": "hakase da nyan!" }, { "cat": "easter_eggs", "text": "get in the robot, shinji." }, { "cat": "easter_eggs", "text": "absolute terror field." }, { "cat": "easter_eggs", "text": "see you space cowboy..." }, { "cat": "easter_eggs", "text": "clock divider out of sync" }, { "cat": "easter_eggs", "text": "generative ambient sounds to sleep to" }, { "cat": "easter_eggs", "text": "turning knobs until it sounds good" }, { "cat": "easter_eggs", "text": "patch cable spaghetti" }, { "cat": "easter_eggs", "text": "praise the math module" }, { "cat": "easter_eggs", "text": "too much resonance" }, { "cat": "easter_eggs", "text": "would you kindly" }, { "cat": "easter_eggs", "text": "no gods or kings, only man" }, { "cat": "easter_eggs", "text": "a man chooses, a slave obeys" }, { "cat": "easter_eggs", "text": "is a man not entitled to the sweat of his brow?" }, { "cat": "easter_eggs", "text": "bring us the girl and wipe away the debt" }, { "cat": "easter_eggs", "text": "there is always a lighthouse" }, { "cat": "easter_eggs", "text": "booker, catch!" }, { "cat": "easter_eggs", "text": "the mind of the subject will desperately struggle to create memories where none exist" }, { "cat": "easter_eggs", "text": "we all make choices, but in the end our choices make us" }, { "cat": "easter_eggs", "text": "i am a superstar cop" }, { "cat": "easter_eggs", "text": "the expression" }, { "cat": "easter_eggs", "text": "mr. evrart is helping me find my gun" }, { "cat": "easter_eggs", "text": "(whisper.) are women bourgeois?" }, { "cat": "easter_eggs", "text": "your mangled brain would like you to know there is a boxer called contact mike" }, { "cat": "easter_eggs", "text": "madre deus... [makes the sign of the cross] A LIBERAL!" }, { "cat": "easter_eggs", "text": "Wöman" }, { "cat": "easter_eggs", "text": "i want to have fuck with you." }, { "cat": "easter_eggs", "text": "cuno doesn't fucking care!" }, { "cat": "easter_eggs", "text": "i'm an artist and liver damage is my art" }, { "cat": "easter_eggs", "text": "say one of these fascist or communist things or FUCK OFF" }, { "cat": "easter_eggs", "text": "hardware is ephemeral, software is eternal" }, { "cat": "easter_eggs", "text": "sunrise, parabellum" }, { "cat": "easter_eggs", "text": "un jour je serai de retour pres de toi" }, { "cat": "easter_eggs", "text": "detective arriving on the scene" }, { "cat": "easter_eggs", "text": "rip and tear" }, { "cat": "easter_eggs", "text": "unf" }, { "cat": "easter_eggs", "text": "to win the game you must kill me, john romero" }, { "cat": "easter_eggs", "text": "bfg 9000" }, { "cat": "easter_eggs", "text": "idkfa" }, { "cat": "easter_eggs", "text": "quad damage" }, { "cat": "easter_eggs", "text": "shambler dance" }, { "cat": "easter_eggs", "text": "slipgate" }, { "cat": "easter_eggs", "text": "telefragging shub-niggurath" }, { "cat": "easter_eggs", "text": "gibbed" }, { "cat": "easter_eggs", "text": "i need a weapon" }, { "cat": "easter_eggs", "text": "were it so easy" }, { "cat": "easter_eggs", "text": "wake me when you need me" }, { "cat": "easter_eggs", "text": "wort wort wort" }, { "cat": "easter_eggs", "text": "demon!" }, { "cat": "easter_eggs", "text": "sir, giving the covenant back their bomb" }, { "cat": "easter_eggs", "text": "don't make a girl a promise if you know you can't keep it" }, { "cat": "easter_eggs", "text": "bapanada" }, { "cat": "easter_eggs", "text": "shaw!" }, { "cat": "easter_eggs", "text": "higher beings, these words are for you alone" }, { "cat": "easter_eggs", "text": "born of god and void" }, { "cat": "easter_eggs", "text": "nasu" }, { "cat": "easter_eggs", "text": "i live... again" }, { "cat": "easter_eggs", "text": "go all city" }, { "cat": "easter_eggs", "text": "burn my dread" }, { "cat": "easter_eggs", "text": "baby baby baby baby" }, { "cat": "easter_eggs", "text": "looking cool, joker!" }, { "cat": "easter_eggs", "text": "take your time" }, { "cat": "easter_eggs", "text": "none of these people know that i was an undesirable child" }, { "cat": "easter_eggs", "text": "oracle, my ad-mice is that we pro-squeak with caution" }, { "cat": "easter_eggs", "text": "damn brat, i'll sue!" }, { "cat": "easter_eggs", "text": "ryuji, go piss off the police" }, { "cat": "easter_eggs", "text": "woah, ann, are those CGI???" }, { "cat": "easter_eggs", "text": "for real!?!?" }, { "cat": "easter_eggs", "text": "ryuji is a phantom thief" }, { "cat": "easter_eggs", "text": "i am thou, thou art i" }, { "cat": "easter_eggs", "text": "the dark hour" }, { "cat": "easter_eggs", "text": "the arcana is the means by which all is revealed" }, { "cat": "easter_eggs", "text": "more like stupei, ace defective" }, { "cat": "easter_eggs", "text": "please paint my powerful persona a pretty purple" }, { "cat": "easter_eggs", "text": "veeelvet, oh veeeeelvet..." }, { "cat": "easter_eggs", "text": "memento mori" }, { "cat": "easter_eggs", "text": "too much water" }, { "cat": "easter_eggs", "text": "i should write something" }, { "cat": "easter_eggs", "text": "hey you, you're finally awake" }, { "cat": "easter_eggs", "text": "stop right there criminal scum" }, { "cat": "easter_eggs", "text": "by azura, by azura, by azura!" }, { "cat": "easter_eggs", "text": "sweetroll stolen" }, { "cat": "easter_eggs", "text": "wait, i know you" }, { "cat": "easter_eggs", "text": "do you get to the cloud district very often?" }, { "cat": "easter_eggs", "text": "khajiit has wares if you have coin" }, { "cat": "easter_eggs", "text": "impending doom approaches" }, { "cat": "easter_eggs", "text": "you feel an evil presence watching you" }, { "cat": "easter_eggs", "text": "the blood moon is rising" }, { "cat": "easter_eggs", "text": "creeper, aw man" }, { "cat": "easter_eggs", "text": "never dig straight down" }, { "cat": "easter_eggs", "text": "mankind is dead" }, { "cat": "easter_eggs", "text": "blood is fuel" }, { "cat": "easter_eggs", "text": "hell is full" }, { "cat": "easter_eggs", "text": "what i am about to do has not been approved by the vatican" }, { "cat": "easter_eggs", "text": "mortis" }, { "cat": "easter_eggs", "text": "gary loves you" }, { "cat": "easter_eggs", "text": "unholy trinity" }, { "cat": "easter_eggs", "text": "spaaaaace!" }, { "cat": "easter_eggs", "text": "lemons!" }, { "cat": "easter_eggs", "text": "yes, you. box. your stuff. out the front door. parking lot. car. goodbye." }, { "cat": "easter_eggs", "text": "still alive" }, { "cat": "easter_eggs", "text": "the part where he kills you" }, { "cat": "easter_eggs", "text": "when life gives you lemons? don't make lemonade. make life take the lemons back! get mad!" }, { "cat": "easter_eggs", "text": "i'm the man who's gonna burn your house down! with the lemons!" }, { "cat": "easter_eggs", "text": "sorry fellas. she's married. to science." }, { "cat": "easter_eggs", "text": "i'm a potato" }, { "cat": "easter_eggs", "text": "losing is fun" }, { "cat": "easter_eggs", "text": "you're thinking about how much you want to fuck 2B, aren't you?" }, { "cat": "easter_eggs", "text": "DO YOU THINK GAMES ARE SILLY LITTLE THINGS?" }, { "cat": "easter_eggs", "text": "become as gods" }, { "cat": "easter_eggs", "text": "weiss, you dumbass" }, { "cat": "easter_eggs", "text": "everything that lives is designed to end" }, { "cat": "easter_eggs", "text": "strike the earth!" }, { "cat": "easter_eggs", "text": "rdm" }, { "cat": "easter_eggs", "text": "look at you, hacker" }, { "cat": "easter_eggs", "text": "pathetic creature of meat and bone" }, { "cat": "easter_eggs", "text": "l-l-look at you" }, { "cat": "easter_eggs", "text": "remember our promise" }, { "cat": "easter_eggs", "text": "great holes secretly are digged where earth's pores ought to suffice" }, { "cat": "easter_eggs", "text": "things have learnt to walk which ought to crawl" }, { "cat": "easter_eggs", "text": "perhaps, this is hell" }, { "cat": "easter_eggs", "text": "ocean of blood" }, { "cat": "easter_eggs", "text": "ACTUNG, ACHTUNG" }, { "cat": "easter_eggs", "text": "[compartmentalizing trauma]" }, { "cat": "easter_eggs", "text": "this god will not forgive you" }, { "cat": "easter_eggs", "text": "no mask? no mask!" }, { "cat": "easter_eggs", "text": "it fills you with determination" }, { "cat": "easter_eggs", "text": "i can't go to hell. i'm all out of vacation days." }, { "cat": "easter_eggs", "text": "despite everything, it's still you" }, { "cat": "easter_eggs", "text": "oh no! you're meeting all my standards!" }, { "cat": "easter_eggs", "text": "endogeny is contented" }, { "cat": "easter_eggs", "text": "i'm 19 years old and i've already wasted my entire life" }, { "cat": "easter_eggs", "text": "who needs arms with legs like these?" }, { "cat": "easter_eggs", "text": "beware the man who speaks in hands." }, { "cat": "easter_eggs", "text": "ret-2-go!" }, { "cat": "easter_eggs", "text": "wall is stop" }, { "cat": "easter_eggs", "text": "tomorrow comes" }, { "cat": "easter_eggs", "text": "when one falls, we continue" }, { "cat": "easter_eggs", "text": "time to mix drinks and change lives" }, { "cat": "easter_eggs", "text": "and here i was thinking it was because i'm a sex worker" }, { "cat": "easter_eggs", "text": "welcome to the hoenn region" }, { "cat": "easter_eggs", "text": "soot sack full" }, { "cat": "easter_eggs", "text": "pokeblock blending" }, { "cat": "easter_eggs", "text": "the rule of six" }, { "cat": "easter_eggs", "text": "i wear no mask" }, { "cat": "easter_eggs", "text": "penrose-512" }, { "cat": "easter_eggs", "text": "knife effect" }, { "cat": "easter_eggs", "text": "poniko's room" }, { "cat": "easter_eggs", "text": "all city king" }, { "cat": "easter_eggs", "text": "got my hair done, got my nails done" }, { "cat": "easter_eggs", "text": "golden strawberry" }, { "cat": "easter_eggs", "text": "b-side unlocked" }, { "cat": "easter_eggs", "text": "morphine administered" }, { "cat": "easter_eggs", "text": "have fun scraping my brains off the wall. fuck you." }, { "cat": "easter_eggs", "text": "darkrp" }, { "cat": "easter_eggs", "text": "blood. an ocean of blood. i wonder how many blood drops of blood there are in this blood ocean." }, { "cat": "easter_eggs", "text": "bjorn the unicorn" }, { "cat": "easter_eggs", "text": "free ball!" }, { "cat": "easter_eggs", "text": "squid baron" }, { "cat": "easter_eggs", "text": "cherry disk" }, { "cat": "easter_eggs", "text": "rad shiba" }, { "cat": "easter_eggs", "text": "spider bake sale" }, { "cat": "easter_eggs", "text": "temmie flakes" }, { "cat": "easter_eggs", "text": "unworthy" }, { "cat": "easter_eggs", "text": "patching the unpatchable" }, { "cat": "easter_eggs", "text": "1v/oct tracking" }, { "cat": "easter_eggs", "text": "mult the envelope" }, { "cat": "easter_eggs", "text": "random source" }, { "cat": "easter_eggs", "text": "slew limiter" }, { "cat": "easter_eggs", "text": "there's beauty in the breakdown" }, { "cat": "easter_eggs", "text": "we're throwing car parts off the cliff" }, { "cat": "easter_eggs", "text": "you'll meet an army of me" }, { "cat": "easter_eggs", "text": "as if you actually were inside the saltwater room" }, { "cat": "easter_eggs", "text": "moving in a technicolour beat" }, { "cat": "easter_eggs", "text": "all we do is hide away" }, { "cat": "easter_eggs", "text": "i get eaten by the worms and weird fishes" }, { "cat": "easter_eggs", "text": "you used to be alright, what happened?" }, { "cat": "easter_eggs", "text": "run away, deeper to see" }, { "cat": "easter_eggs", "text": "velocity: design: comfort" }, { "cat": "easter_eggs", "text": "fruitcake and cookies" }, { "cat": "helix_editor", "text": "press `%` to select the entire file at once, which is perfect for a quick global format or copy." }, { "cat": "helix_editor", "text": "use `s` to select text matching a regex pattern inside your current selection." }, { "cat": "helix_editor", "text": "typing `mi` followed by a bracket or quote will select everything inside those characters." }, { "cat": "helix_editor", "text": "press `]` then `p` to paste your clipboard content on the line below your cursor, perfectly indented." }, { "cat": "helix_editor", "text": "use `ctrl + c` to quickly toggle line comments on your current selection." }, { "cat": "homelab_infra", "text": "use `docker system prune -a --volumes` to completely nuke all unused containers, networks, images, and volumes." }, { "cat": "homelab_infra", "text": "when writing docker-compose files, always define a custom network instead of relying on the default bridge for better security and dns resolution." }, { "cat": "homelab_infra", "text": "if a container is having weird permission issues with a bind mount, check the uid/gid the container runs as and match it on your host." }, { "cat": "homelab_infra", "text": "wireguard private keys should always have their permissions set to 600 so other users on the system cannot read them." }, { "cat": "homelab_infra", "text": "caddy is fantastic for homelabs. a basic reverse proxy with automatic ssl is literally just `domain.com { reverse_proxy localhost:8080 }`." }, { "cat": "proxmox", "text": "the `/etc/pve/` directory is actually a clustered sqlite database using corosync, not a normal filesystem. do not try to symlink things in there." }, { "cat": "proxmox", "text": "run `pveperf` to run a quick cpu and disk benchmark on your host to verify your storage array isn't crawling." }, { "cat": "proxmox", "text": "you can use `pct push` and `pct pull` to copy files in and out of an lxc container without needing to set up ssh or shared mounts." }, { "cat": "proxmox", "text": "if a vm is completely locked up and ignoring stop requests, use `qm stop --skiplock` to force it." }, { "cat": "proxmox", "text": "use `pvesm status` to get a quick command line overview of all your configured storage pools and their usage." }, { "cat": "proxmox", "text": "qemu-guest-agent is a lifesaver. install it in your vms so proxmox can properly issue shutdown commands and read the guest IP." }, { "cat": "shell_magic", "text": "adding a single space before a command will prevent it from being saved to your shell history." }, { "cat": "shell_magic", "text": "append the `-Z` flag to `ls`, `ps`, or `id` to reveal the hidden selinux security contexts attached to files, processes, or users." }, { "cat": "shell_magic", "text": "if a download gets interrupted, use `wget -c ` to continue right where it left off instead of starting over." }, { "cat": "shell_magic", "text": "if you cat a binary file and your terminal gets completely garbled, type `reset` and press enter to fix the character encoding." }, { "cat": "shell_magic", "text": "pipe any messy text output into `column -t` to automatically format it into beautifully aligned tables." }, { "cat": "shell_magic", "text": "pipe json output into `jq .` to automatically colorize and beautifully indent it." }, { "cat": "shell_magic", "text": "press `alt + .` to instantly paste the last argument of your previous command into your current prompt." }, { "cat": "shell_magic", "text": "press `ctrl + a` to jump your cursor to the very beginning of the line, and `ctrl + e` to jump to the very end." }, { "cat": "shell_magic", "text": "press `ctrl + l` to quickly clear your terminal screen instead of typing `clear`." }, { "cat": "shell_magic", "text": "press `ctrl + r` to open a reverse search through your shell history. just start typing to find a past command." }, { "cat": "shell_magic", "text": "press `ctrl + w` to delete the word right before your cursor, and `ctrl + u` to clear the whole line." }, { "cat": "shell_magic", "text": "press `ctrl + z` to suspend a running command, then type `bg` to let it keep running in the background." }, { "cat": "shell_magic", "text": "run `grep -i error /var/log/secure` to quickly hunt down failed ssh login attempts or su permission denials." }, { "cat": "shell_magic", "text": "run `ln -s /target /link_name` to create a soft symbolic link, which acts like a shortcut to a file or directory." }, { "cat": "shell_magic", "text": "run `rsync -avz --progress /source /dest` for a robust file copy that preserves permissions, compresses data, and shows a progress bar." }, { "cat": "shell_magic", "text": "run `ssh-copy-id @` to automatically copy your public ssh key into the authorized_keys file of a remote server." }, { "cat": "shell_magic", "text": "running `> filename.txt` will instantly empty out all the contents of a file without deleting the file itself." }, { "cat": "shell_magic", "text": "running `find . -type f -name \"*.conf\"` will recursively search your current directory for all files ending in .conf." }, { "cat": "shell_magic", "text": "running `lsof -i :80` will instantly tell you which process and user is holding port 80 hostage." }, { "cat": "shell_magic", "text": "type `^old^new` to quickly re-run your last command, replacing the word `old` with `new`." }, { "cat": "shell_magic", "text": "type `echo $?` to see the exit code of the last command you ran. a zero means it succeeded, anything else is an error." }, { "cat": "shell_magic", "text": "type `sudo !!` to instantly re-run your previous command with root privileges if you forgot to add sudo." }, { "cat": "shell_magic", "text": "use `cd -` to instantly take you back to the previous directory you were in." }, { "cat": "shell_magic", "text": "use `chmod +x script.sh` to quickly make a text file executable." }, { "cat": "shell_magic", "text": "use `curl -I ` to fetch just the http headers of a website, great for testing redirects without downloading the whole page." }, { "cat": "shell_magic", "text": "use `dig +short ` to get a perfectly clean, scriptable output of just the resolved IP addresses." }, { "cat": "shell_magic", "text": "use `du -sh * | sort -h` to see a human-readable, sorted list of which files and folders are taking up the most space in your current directory." }, { "cat": "shell_magic", "text": "use `grep -rnw \"search_term\" .` to recursively search through all files in a directory for a specific string of text." }, { "cat": "shell_magic", "text": "use `killall -9 ` to brutally force-quit all running instances of an application by its name instead of chasing pids." }, { "cat": "shell_magic", "text": "use `mkdir -p /path/to/nested/folders` to create a deep directory structure all at once without getting errors." }, { "cat": "shell_magic", "text": "use `nohup &` to run a process in the background that will survive even if you close your ssh session." }, { "cat": "shell_magic", "text": "use `ping -c 4 ` to send exactly four icmp echo requests instead of letting it ping infinitely." }, { "cat": "shell_magic", "text": "use `pushd` and `popd` to manage a directory stack. unlike `cd -`, which only toggles your last two locations, `pushd` creates a breadcrumb trail so you can pop back through multiple deep paths in order." }, { "cat": "shell_magic", "text": "run `dirs -v` to see your current directory stack with indices. you can then jump straight to any 'bookmarked' spot using `pushd +n`." }, { "cat": "shell_magic", "text": "use `shuf -n 1 filename` to pick a completely random line out of a text file." }, { "cat": "shell_magic", "text": "use `tar -czvf archive.tar.gz /target` to create a compressed gzip archive, and use `-xzvf` to extract it." }, { "cat": "shell_magic", "text": "use `tail -f /path/to/log` to watch a log file update in real-time." }, { "cat": "shell_magic", "text": "use `watch -n 1 ` to run a command every second and display its output on screen, perfect for monitoring a long copy or build." }, { "cat": "shell_magic", "text": "press `ctrl + x` then `ctrl + e` to open your current long, messy command prompt in your default text editor (like vim or helix) to edit it safely before running." }, { "cat": "shell_magic", "text": "use process substitution like `diff <(ls dir1) <(ls dir2)` to compare the output of two different commands without ever creating temporary files." }, { "cat": "shell_magic", "text": "type `cp filename{,.bak}` to instantly create a backup copy of a file named filename.bak using bash brace expansion." }, { "cat": "shell_magic", "text": "you cannot redirect sudo output with a simple `>`. use `echo \"text\" | sudo tee -a /etc/file` to safely append text to root-owned configuration files." }, { "cat": "shell_magic", "text": "use `ssh -J user@jumpbox user@destination` to effortlessly proxy your ssh connection through a bastion host in a single clean command." }, { "cat": "shell_magic", "text": "need to quickly transfer files over the lan? run `python3 -m http.server 8080` to turn your current directory into a fast, temporary web server." }, { "cat": "shell_magic", "text": "use `awk '!a[$0]++' filename` to strip duplicate lines from a file while preserving the original sorting order, which `uniq` cannot do." }, { "cat": "shell_magic", "text": "run `script session.log` before starting a complex task. it records absolutely every keystroke and output into a text file until you type `exit`." }, { "cat": "shell_magic", "text": "make your scripts fly by adding `-P ` to `xargs`. it forces commands to process in parallel across multiple cpu threads." }, { "cat": "shell_magic", "text": "use brace expansion to build out complex folder structures instantly: `mkdir -p project/{src,build,test,docs/assets}`." }, { "cat": "shell_magic", "text": "type `cd $(mktemp -d)` to instantly generate a secure, randomized temporary directory in /tmp and immediately move your shell into it." }, { "cat": "shell_magic", "text": "add `shopt -s cdspell` to your .bashrc and your shell will automatically fix minor typos when you try to `cd` into a mispelled directory." }, { "cat": "shell_magic", "text": "use `!!:gs/foo/bar` to completely re-run your previous command, globally replacing every single instance of the word `foo` with `bar`." }, { "cat": "shell_magic", "text": "need a cryptographically secure random string? run `tr -dc A-Za-z0-9 ` creates a drop-in override snippet so your changes survive package updates." }, { "cat": "sysadmin", "text": "use `systemctl isolate multi-user.target` to immediately switch to a non-graphical runlevel without rebooting." }, { "cat": "sysadmin", "text": "running `journalctl -p err..emerg` filters your logs to only show errors, criticals, alerts, and emergencies." }, { "cat": "sysadmin", "text": "use `systemctl get-default` to see what target your system boots into, and `systemctl set-default` to change it permanently." }, { "cat": "sysadmin", "text": "run `journalctl --disk-usage` to see exactly how much drive space your archived systemd logs are eating up." }, { "cat": "sysadmin", "text": "use `systemd-analyze critical-chain` to print a tree of the time-critical chain of units holding up your boot process." }, { "cat": "sysadmin", "text": "the `systemctl daemon-reload` command is strictly required anytime you manually create or edit a unit file on disk." }, { "cat": "sysadmin", "text": "run `journalctl -u sshd --since today` to see only the logs for the ssh daemon generated since midnight." }, { "cat": "sysadmin", "text": "use `systemctl list-unit-files --state=enabled` to quickly audit everything that is configured to start on boot." }, { "cat": "sysadmin", "text": "run `systemctl show ` to dump all the low-level properties and current state parameters of a specific service." }, { "cat": "sysadmin", "text": "use `dnf autoremove` to clean up orphaned dependencies that were installed for packages you have since removed." }, { "cat": "sysadmin", "text": "if an update breaks something critical, `dnf downgrade ` will attempt to revert it to the previously installed version." }, { "cat": "sysadmin", "text": "use `dnf repolist` to verify which software repositories are currently enabled and active on your system." }, { "cat": "sysadmin", "text": "run `rpm -qc ` to list only the configuration files associated with an installed rpm package." }, { "cat": "sysadmin", "text": "use `rpm -qf /path/to/file` to find out exactly which installed package owns a specific file on your system." }, { "cat": "sysadmin", "text": "run `rpm --scripts -qp ` before installing a random downloaded rpm to see what pre and post install scripts it runs." }, { "cat": "sysadmin", "text": "use `dnf makecache` to manually force your system to download the latest repository metadata right now." }, { "cat": "sysadmin", "text": "run `dnf module enable :` to lock in a specific major version of an application stream before installing it." }, { "cat": "sysadmin", "text": "use `rpm -ql ` to get a complete list of every single file a package dropped onto your filesystem." }, { "cat": "sysadmin", "text": "running `dnf clean all` is the best way to resolve weird dependency resolution errors caused by corrupt local metadata." }, { "cat": "sysadmin", "text": "use `vgs`, `pvs`, and `lvs` for quick, single-line summaries of your lvm volume groups, physical volumes, and logical volumes." }, { "cat": "sysadmin", "text": "run `vgextend ` to add a newly initialized physical volume into an existing volume group." }, { "cat": "sysadmin", "text": "use `lvcreate -n -L ` to carve out a new logical volume from the available free space in a volume group." }, { "cat": "sysadmin", "text": "always run `pvcreate /dev/sdX` to initialize a raw disk or partition before trying to hand it over to lvm." }, { "cat": "sysadmin", "text": "use `xfs_growfs /mountpoint` to expand an xfs filesystem after you have grown its underlying logical volume." }, { "cat": "sysadmin", "text": "if you are using ext4 instead of xfs, use `resize2fs /dev/mapper/vol` to expand the filesystem to fill the logical volume." }, { "cat": "sysadmin", "text": "run `blkid` to print out the universally unique identifiers (UUIDs) for every formatted block device on your system." }, { "cat": "sysadmin", "text": "use `partprobe` to force the kernel to re-read the partition table without needing a full system reboot." }, { "cat": "sysadmin", "text": "run `mount -a` after editing /etc/fstab to verify there are no syntax errors before you reboot and break the system." }, { "cat": "sysadmin", "text": "use `findmnt --verify` to let the system actively parse your fstab and warn you about missing devices or bad options." }, { "cat": "sysadmin", "text": "run `swapoff -a` and then `swapon -a` to completely flush your swap space back into regular ram if you have enough free." }, { "cat": "sysadmin", "text": "use `mkswap /dev/sdX` to format a dedicated partition or logical volume specifically for use as swap space." }, { "cat": "sysadmin", "text": "run `fdisk -l` for a traditional, verbose overview of all attached disks and their partition tables." }, { "cat": "sysadmin", "text": "use `getenforce` to quickly check if selinux is running in enforcing, permissive, or disabled mode." }, { "cat": "sysadmin", "text": "run `setenforce 0` to temporarily put selinux into permissive mode for troubleshooting without breaking the whole system." }, { "cat": "sysadmin", "text": "use `semanage fcontext -a -t \"/path(/.*)?\"` to define the default selinux context rules for a custom directory." }, { "cat": "sysadmin", "text": "run `semanage port -l` to see the complete list of default network ports and what selinux allows them to be used for." }, { "cat": "sysadmin", "text": "use `semanage login -l` to map linux users to specific selinux confined user roles for stricter access control." }, { "cat": "sysadmin", "text": "run `chcon -t ` for a temporary context change, but remember that `restorecon` will overwrite it later." }, { "cat": "sysadmin", "text": "if you really messed up your contexts, run `touch /.autorelabel` and reboot to force selinux to re-evaluate every file on the system." }, { "cat": "sysadmin", "text": "use `ausearch -m AVC,USER_AVC -ts recent` to pull only the actual selinux denial events from the audit log." }, { "cat": "sysadmin", "text": "run `nmcli con show` to see all defined network profiles, and look at the color to see which ones are currently active." }, { "cat": "sysadmin", "text": "use `nmcli con up ` or `nmcli con down ` to toggle network connections on and off." }, { "cat": "sysadmin", "text": "run `nmcli con add type ethernet con-name ifname ` to generate a brand new network profile from scratch." }, { "cat": "sysadmin", "text": "use `nmcli con mod ipv4.addresses ` to assign a static IP address to a specific network connection." }, { "cat": "sysadmin", "text": "if you set a static IP, you must also run `nmcli con mod ipv4.method manual` so it does not try to dhcp over it." }, { "cat": "sysadmin", "text": "run `nmcli dev status` to see the hardware state of your physical network interface cards." }, { "cat": "sysadmin", "text": "use `nmcli dev show ` to dump all the active ip routing, dns, and hardware details for a specific adapter." }, { "cat": "sysadmin", "text": "run `ip a` as the modern, faster replacement for `ifconfig` to see your current interface addresses." }, { "cat": "sysadmin", "text": "use `ip r` to view the kernel routing table and figure out where your default gateway is pointing." }, { "cat": "sysadmin", "text": "run `ip n` to view the arp cache and see the mac addresses of other devices communicating on your local subnet." }, { "cat": "sysadmin", "text": "run `tracepath ` to discover the routing hops to a destination and see the path mtu discovery in action." }, { "cat": "sysadmin", "text": "run `firewall-cmd --state` to verify the firewalld daemon is actually running and actively managing iptables/nftables." }, { "cat": "sysadmin", "text": "use `firewall-cmd --get-active-zones` to see which firewall zones are currently bound to which network interfaces." }, { "cat": "sysadmin", "text": "run `firewall-cmd --list-all` to see exactly what ports, services, and rich rules are active in your default zone." }, { "cat": "sysadmin", "text": "use `firewall-cmd --add-service=http --permanent` to open the standard port 80 based on its service definition." }, { "cat": "sysadmin", "text": "run `firewall-cmd --remove-service=` to close a port and block incoming traffic for that specific protocol." }, { "cat": "sysadmin", "text": "use `firewall-cmd --panic-on` to instantly drop all network packets in an emergency. use `--panic-off` to restore access." }, { "cat": "sysadmin", "text": "run `firewall-cmd --runtime-to-permanent` to save all the live rules you just tested into the permanent configuration." }, { "cat": "sysadmin", "text": "use rich rules like `firewall-cmd --add-rich-rule=\"rule family=ipv4 source address=10.0.0.5 accept\"` for precise ip filtering." }, { "cat": "sysadmin", "text": "run `podman run -d --name ` to start a container detached in the background." }, { "cat": "sysadmin", "text": "use `podman ps -a` to see all containers, including those that have crashed or successfully exited." }, { "cat": "sysadmin", "text": "run `podman images` to list all the container images currently cached in your local storage." }, { "cat": "sysadmin", "text": "use `podman rmi ` to permanently delete a cached image and free up disk space." }, { "cat": "sysadmin", "text": "run `podman rm ` to destroy an existing container. add `-f` to force it if it is still running." }, { "cat": "sysadmin", "text": "use `podman generate systemd --new --name ` to create a native systemd service file to manage your podman workload." }, { "cat": "sysadmin", "text": "run `podman exec -it /bin/bash` to drop into an interactive shell inside a running container." }, { "cat": "sysadmin", "text": "use `podman logs -f ` to stream the stdout and stderr logs of a container in real-time." }, { "cat": "sysadmin", "text": "run `podman inspect ` to get a massive json dump of the internal networking, mounts, and state of a container." }, { "cat": "sysadmin", "text": "use `podman pod create` to group multiple containers together so they share the same network namespace and local host IP." }, { "cat": "sysadmin", "text": "run `useradd -m -s /bin/bash ` to create a new user account, force their home directory creation, and set their default shell." }, { "cat": "sysadmin", "text": "use `usermod -aG ` to append a user to an additional group. do not forget the `a`, or you will remove them from their other groups." }, { "cat": "sysadmin", "text": "run `passwd -l ` to instantly lock an account without deleting their data. use `-u` to unlock it later." }, { "cat": "sysadmin", "text": "use `chage -l ` to view their password aging rules, expiration dates, and account validity." }, { "cat": "sysadmin", "text": "always use `visudo` to edit the /etc/sudoers file so it validates your syntax before saving and locking you out of root." }, { "cat": "sysadmin", "text": "run `chmod u+s ` to set the SUID bit, allowing the program to execute with the permissions of the file owner." }, { "cat": "sysadmin", "text": "use `chmod g+s ` to set the SGID bit on a folder, forcing all new files created inside it to inherit the folder's group ownership." }, { "cat": "sysadmin", "text": "run `chmod +t ` to set the sticky bit, ensuring only the file owner or root can delete files in a shared directory like /tmp." }, { "cat": "sysadmin", "text": "use `getfacl ` to view the extended access control lists if basic linux permissions are not enough." }, { "cat": "sysadmin", "text": "run `setfacl -m u::rwx ` to explicitly grant a specific user full permissions without changing the file owner." }, { "cat": "sysadmin", "text": "use `chronyc sources` to see exactly which ntp servers you are syncing with and their current stratum and polling rate." }, { "cat": "sysadmin", "text": "run `tuned-adm list` to see all the available system tuning profiles installed by the tuned daemon." }, { "cat": "sysadmin", "text": "use `tuned-adm profile ` to apply an optimized kernel profile like `virtual-guest` or `throughput-performance`." }, { "cat": "sysadmin", "text": "run `stratis pool list` to see your currently configured stratis storage pools if you are using rhel's newer volume manager." }, { "cat": "sysadmin", "text": "use `vdo status` to check the deduplication and compression ratios on your configured virtual data optimizer block devices." }, { "cat": "sysadmin", "text": "run `showmount -e ` to ask a remote server to list all the nfs shares it is actively exporting." }, { "cat": "sysadmin", "text": "use `autofs` combined with /etc/auto.master to automatically mount network shares on demand only when a user accesses the directory." }, { "cat": "sysadmin", "text": "use `lscpu` to get a clean, human-readable breakdown of your processor architecture, cores, threads, and numa nodes." }, { "cat": "sysadmin", "text": "run `free -h` to see your memory and swap utilization in megabytes and gigabytes instead of counting raw bytes." }, { "cat": "sysadmin", "text": "use `uptime` to get a quick one-liner showing how long the system has been running and the 1, 5, and 15 minute load averages." }, { "cat": "sysadmin", "text": "run `top -c` to see the process viewer with the full command line arguments displayed for every running process." }, { "cat": "sysadmin", "text": "use `crontab -e` to edit the current user's cron jobs, or look in /etc/cron.d/ for system-wide scheduling." }, { "cat": "sysadmin", "text": "run `df -hT` to see your disk space utilization alongside the actual filesystem type (xfs, ext4, nfs) for each mount." } ]