Whether you're a beginner or a pro, HakTip is essential viewing for current and aspiring hackers, computer enthusiasts, and IT professionals. With a how-to approach to all things Information Technology, HakTip breaks down the core concepts, tools, and techniques of Linux, Wireless Networks, Systems... Read More
This week we are checking out your viewer feedback tips- editing bash history, Learn Linux the Hard Way, and shortcuts!
I've gotten tons of feedback on recent HakTips and here are some of my favorite tips and tricks from you guys:
Robert sent in another great tip: I keep my .bash_history file edited to my favorite commands, options, and arguments. They are,
lynx -accept_all_cookies lynx_bookmarks.html
irssi -c chat.freenode.net -p 6667 -n babysprite
irssi -c irc.sdf.org -p 6667 -n rbigelo
irssi -c irc.twit.tv -p 6667 -n Me
by using a favorite text editor, which is vim .bash_history. So for the next Terminal session, I can simply [up arrow] to the desired command, option, and argument.
This next tip is from Bill: A couple of terminal commands to let you know what kernel and Ditro you are using
# uname -r - this will let you know what version of Kernel you are running
# cat /etc/*release - Let you know what version on distro you are running
This one is from Mr-Protocol again: I figured this would be a cool idea you could pass along for your HakTips. I found it via SlashDot and figured maybe more could get some use out of it. It's a web based ""Learn Linux the Hard Way"" with a good amount of exercises at the bottom of the page. Maybe this could give a guideline to progress in learning the basics for people. The list of exercises include vim, language settings, bash, job schedulers, file systems, networking and performance, and kernel.
Pedro says: In the last episode of HakTips you were explaining some keyboard shortcuts. I know one that's pretty helpful. Many times you're writing a long command but realize you have to issue another command first so it get's pretty messy. You hit enter with the partial command, issue the other and then go up in the history or you discard the command and then have to type it again or even copy the command selecting it with the mouse (now with keyshorts -too long-). That's painful. The solution: Ctrl+q. It seems like a quit command but it isn't. It yanks the current line, let you issue another command and automagically pastes back the previous command on the next prompt.
$ rm -rf file (ctrl+q)
$ ls -la
(list of files)
$ rm -rf file (appears again)
He goes on to give us another shell option: I would recommend zsh. To get started you may want to try oh my zsh (https://github.com/robbyrussell/oh-my-zsh), it's like a framework for zsh with lots of great stuff, mainly for developers. As a simple example, with zsh you can do: $ rm **/*.tmp
That will delete all .tmp files under the current directory and it's subdirectories. With bash you may have to pipe find into rm or something like that.
Send your tips in! Make sure to email me firstname.lastname@example.org with your thoughts. And be sure to check out our sister show, Hak5 for more great stuff just like this. I'll be there, reminding you to trust your technolust.
9 days ago
Employers want social media passwords, US gets a #CPO, and #TheOnion! All that and more this time on #ThreatWire! http://t.co/SrZpicvnt6
12 days ago
#Installing #Solar panels, #Google #Chrome #extensions, and more on @Hak5! http://t.co/QppYLgZpi5
12 days ago
Legalizing #Internet eavesdropping, #LivingSocial is #hacked, and more on this weeks #ThreatWire! http://t.co/xyIxzy8kes
12 days ago
@thescribe I didn't! They were disabled and enabled throughout the segment. Each one has a different icon. - @Snubs
12 days ago
@myraitnetwork thank you!
27 days ago
#PGP #Encrypt your email, back up your #Gmail Account with #Ubuntu, text #messaging your #WiFi #Pineapple On #Hak5! http://t.co/KSZeO4GEPU