Finding files with the Linux command line. Using find & locate The find command on Linux is very useful for finding commands on your Linux installation. In the example below, I am using wild-cards to look for all the c source files in a certain folder. [email protected]:~/Documents$ find -name "*.c" ./strobe.c ./myftp.c ./utv_gd.c ./syscall.c ./program.c …

The shred command on Linux is the perfect way to remove files securely from your Linux system. With a large amount of iterations, it will ensure that it is very difficult to get the data back. the -u parameter will delete the file after the overwriting process. [email protected]:~$ shred -n 20 -u [email protected]:~$ shred -n …

Copying a file with sftp from one UNIX machine to another is very easy. The command below uses the SSH protocol and initiates a connection to the remote PC. ubuntu ~ $ sftp -P 443 [email protected] ~ $ sftp -P 443 [email protected] Press ENTER and type your password. The user will be presented with a …

This command will search a directory recursively to find files matching a pattern. C:\Users\Homer>where /R C:\Users\homer\Documents *.txt C:\Users\Homer\Documents\age-of-ultron-script-outline.txt C:\Users\Homer\Documents\windows10key.txt C:\Users\Homer\Documents\Downloads\Linux The Complete Manual 2nd Edition (TRUE PDF)\Torrent downloaded from AhaShare.com.txt C:\Users\Homer\Documents\Downloads\Linux The Complete Manual 2nd Edition (TRUE PDF)\Torrent Downloaded From ExtraTorrent.cc.txt C:\Users\Homer\Documents\Downloads\Linux The Complete Manual 2nd Edition (TRUE PDF)\tracked_by_h33t_com.txt C:\Users\Homer\Documents\Downloads\Linux The Complete Manual 2nd Edition …

The find command is very useful for locating files on your Linux filesystem. Below is an example of wildcards to locate files in the /boot directory. [email protected]:~$ sudo find /boot -name "vm*" [email protected]:~$ sudo find /boot -name "vm*" /boot/vmlinuz-3.13.0-44-generic Here I am searching the whole / filesystem for a set of files that end in …

Sony pictures serves were recently hacked and some files were stolen. Apparently, there was a single folder named “Passwords” and this contained all of the files that were stolen. Apparently a DVDrip of the movie Fury was downloaded as well as countless passwords and other files. 47,000 social security numbers for various Hollywood stars including …

This is the sample command I am using to download my OpenVPN keys from a remote VPN server to allow me to setup a local connection. And to backup the keys safely. [1][email protected] ~ $ scp -i Goku.pem -P 443 [email protected]:/home/ubuntu/easy-rsa/keys/*.* /home/homer/vpn/ 01.pem 100% 5589 5.5KB/s 00:00 ca.crt 100% 1736 1.7KB/s 00:00 ca.key 100% 1704 …

The lynis tool for Kali Linux allows you to scan your computer system for security vulnerabilities. Execute this command as root and this will allow you to find out if you have any problems with your installation. [email protected]:/home/homer# lynis –check-all   [ Lynis 1.4.1 ]   ################################################################################ Lynis comes with ABSOLUTELY NO WARRANTY. This is …

This is another way to find out who your user is. bash 07:15:16 Fri Jul 05 [[email protected] $ who is linux homer pts/0 2013-07-05 19:10 (:0.0) And this command lists all logged in users on your Linux system. bash 07:15:09 Fri Jul 05 [[email protected] $ pinky Login Name TTY Idle When Where homer Homer Simpson …

How do you search a binary file for a certain string that ends in a number; but you are not sure what the number is? Then this command will perform this task. [email protected] ~/Documents/master $ strings vesperas.wad | grep -a “MAP[0-9]” MAP15 I was using this command as I had a folder full of Doom …

Opening a folder and listing the contents, and not listing certain files. This is the Perl code I was using on my very old Tripod.com website. opendir(DNAME, “$folder”) || die “I cannot open the requested directory $folder \n $!”; @dirfiles2 = readdir (DNAME); @dirfiles2 = sort(@dirfiles2); foreach $x2 (@dirfiles2) { if ($x2 eq “.”) { …

“In the wake of the Megaupload takedown, Filesonic has elected to take preventative measures against a similar fate. The front page and all files now carry the following message: ‘All sharing functionality on FileSonic is now disabled. Our service can only be used to upload and retrieve files that you have uploaded personally.’ Whether or …