Linux secrets most users do Not know about
A reddit conversation that focused on matters about Linux that most users don’t know has gotten tons of responses, and a number of them are quite interesting and enlightening. Malefairy asked his question in the Steam subreddit: [ The InfoWorld roundup: 5 rock-solid Linux distros for developers. ] What are some linux’secrets’ most consumers don’t know about? For example the’Alt-SysRq’ key mix, I only learned about that and am curious to know whether there are some other’secrets’. More in Reddit His fellow Linux Tricks redditors responded with their understanding of Linux secrets: Exex:”Not sure about all, but I suppose at least a few do not know about the Magic SysRq key.” Uoou:”The command combined with something such as notify-send is really handy for short-term one-off reminders.” Gsxr:”Don’t have nc? telnet? nmap? And do not feel like writing a python/perl/* script? Use /dev/tcp/$ hostname/$port” Opheltes:”1) Display is a great control which I didn’t know about till after I’d used linux for approximately 10 years. 2) You can use ssh for more than simply logging into a remote device – you can also use it to execute commands remotely, e.g. ssh [hostname] [command] 3) chkrootkit – Only learned about this one lately. It does a security scan for malware on your system. (I’d encounter a false positive about the suckit rootkit test )” BarqsDew:”Tmux is an alternate to display. Tmux is superior (unless you are connecting to a serial console, however pff), mostly because it’s not ungooglable. :-RRB-” Faviu2:”The date command accepts free-form input.”
Devel_watcher:”You are able to scroll tty with Change ” Skaarj:”A lot of outdated tutorials inform you your need to specify the compression method when unpacking with pitch. This is untrue. Tar will detect the document format and tar xf FILENAME is all you need to unpack a file.” Flameleaf:”If you’re on Arch Linux, try adding ILoveCandy to your pacman.conf” Auxiliary-character:”Ctrl + R in bash will allow you to search your history.” Kei_katsuga:”Insert”Defaults insults” on your sudoers file(sudo visudo) and watch your computer insult you personally as you sort wrong password for sudo.” It compels the procedure it’s delivered to to quit executing (it’s one of those two signals that the process can not capture, so even deadlocked userspace apps are not immune to it). It is handy for runaway processes eating CPU (or anything ) that you wish to just cease for the moment so that you can go do something else but you still don’t wish to actually exit for a reason and re-open. Resume the procedure later with SIGCONT.
Paradiesstaub:”It’s possible to increase the maximum cached terminal output line count. When using git status on occasion the default gnome-terminal max-line-count would be to low to show all content, therefore I always put it to 2000 lines (piping to less is not an option because syntax highlighting could be dropped ).” J1r1k: “Alt + . (dot) in bash. Last argument of previous command. It took me few years to discover this.”