This is the proper way to use grep. You do not need to use cat at all. This method works well and is one command, not two piping together. [email protected]:~/Documents$ grep apt-get ../.bash_history sudo apt-get update sudo apt-get install me-tv sudo apt-get update && sudo apt-get install xvst apt-get moo apt-get [email protected]:~/Documents$ grep apt-get ../.bash_history …

To list all the files installed by a certain Debian package, use this command. dpkg -L [PACKAGENAME]. For example. ubuntu ~ $ dpkg -L vim /. /usr /usr/bin /usr/bin/vim.basic /usr/share /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/vim /usr/share/bug /usr/share/bug/vim /usr/share/bug/vim/presubj /usr/share/bug/vim/script /usr/share/doc /usr/share/doc/vimubuntu ~ $ dpkg -L vim /. /usr /usr/bin /usr/bin/vim.basic /usr/share /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/vim /usr/share/bug /usr/share/bug/vim /usr/share/bug/vim/presubj …

Convert a Linux text file to DOS format with AWK. [[email protected]:~] cat dodo-ip.txt | awk ‘{sub(/$/,"\r")};1’ > dodo2.txt[[email protected]:~] cat dodo-ip.txt | awk ‘{sub(/$/,"\r")};1’ > dodo2.txt Convert a DOS text file to UNIX format. [[email protected]:~] cat dodo2.txt | awk ‘{sub(/\r$/,"")};1’ > dodo3.txt[[email protected]:~] cat dodo2.txt | awk ‘{sub(/\r$/,"")};1’ > dodo3.txt Get your Internet facing IP address from …

Hacking is something that a lot of us think in a negative way, but the truth of the matter is, there are a lot of positives that can come out of it as well. In this article, we’re going to take a look at 10 cool tricks that you can use if you’re thinking about …

Using the shellshock bash bug on an iMac. iMac04:~ admin$ env VAR1=’me() {echo "hello"}\ ‘ /bin/echo "hello" helloiMac04:~ admin$ env VAR1=’me() {echo "hello"}\ ‘ /bin/echo "hello" hello Getting free hard disk space easily. iMac04:~ admin$ df -Hla Filesystem Size Used Avail Capacity iused ifree %iused Mounted on /dev/disk0s2 89G 64G 25G 73% 15757422 6089307 72% …

This is how to connect to a machine with an SSH server installed and download a file from that machine to your local computer. The sftp command allows this to be accomplished with ease. [email protected] ~ $ sftp -P 443 [email protected]:/home/homer/Documents/my2.c LMDE MATE [email protected]’s password: Connected to 192.168.100.8. Fetching /home/homer/Documents/my2.c to my2.c /home/homer/Documents/[email protected] ~ $ …

Change the mac address of your network adapter. sudo ifconfig wlan0 down && sudo ifconfig wlan0 hw ether 00:11:22:33:44:55 && sudo ifconfig wlan0 upsudo ifconfig wlan0 down && sudo ifconfig wlan0 hw ether 00:11:22:33:44:55 && sudo ifconfig wlan0 up This will change the mac address of your network interface instantly. Below is an example. [email protected]

The boxes utility for Linux allows you to render an ascii text box around text. Below is an example. [email protected] 19:14:21 ~ $ echo `echo "This is a sentence printed to the terminal."` | boxes /***********************************************/ /* This is a sentence printed to the terminal. */ /***********************************************/[email protected] 19:14:21 ~ $ echo `echo "This is a …

This Linux command will copy the text file given, “myfile.txt” and send it to the sprunge.us website. This allows you to share a text file with others without too much fuss. curl -F ‘sprunge=<myfile.txt’ http://sprunge.uscurl -F ‘sprunge=<myfile.txt’ http://sprunge.us You may also install the PastebinCL utility on Fedora 19, this allows you to upload text to …