Very useful .vimrc file for Linux users.

A very nice .vimrc file for any Linux user, this makes VI or VIM easier to use. " ~/.vimrc (configuration file for vim only) " skeletons function! SKEL_spec() 0r /usr/share/vim/current/skeletons/skeleton.spec language time en_US if $USER != ” let login = $USER elseif $LOGNAME != ” let login = $LOGNAME else…

Read More

How to sort the output of ls by date modified.

Sorting the output of ls by date modified is very easy. This is how to sort output and display the few most recent files. This example shows how to do this. Use head – 20 to list only the top 20 results. 4.4 Tue May 21 jason@Yog-Sothoth 0: $ ls…

Read More

Advanced file listing tricks for Linux.

How to do various file listing tricks on Linux to find various files. Get a listing of all files in /bin that contain the letters ‘ls’ and output the file details. 4.4 Tue Mar 05 jason@Yog-Sothoth 0: $ find /bin -type f -name ‘*ls*’ -ls 3933382 132 -rwxr-xr-x 1 root…

Read More

Another good way to look for open directories full of files with Google.

This Google search term will find all folders on the Internet with files for download. Predators -inurl:(htm|html|php|pls|txt) intitle:index.of “last modified” (mp4|wma|aac|avi)Predators -inurl:(htm|html|php|pls|txt) intitle:index.of “last modified” (mp4|wma|aac|avi) This Google Dork will find all Administrator login pages on the Internet, that are accessible from the `net. inurl /administrator/index.php autologin=1inurl /administrator/index.php autologin=1 Find…

Read More

Updating an open-source project is fun.

I have updated my System Information project, I used git to push changes to the repo from my local machine. This is not too hard. Add files to the main branch like this. jason@Yog-Sothoth:~/Documents/sysinfo$ git add src/iface.hjason@Yog-Sothoth:~/Documents/sysinfo$ git add src/iface.h Then push the changes to the repo. jason@Yog-Sothoth:~/Documents/sysinfo$ git push…

Read More

Restore the files in /etc/skel if they have been deleted.

The files in /etc/skel are for the creation of new user accounts, but if they are deleted accidentally, they are no good no anyone. This is how to re-download these files and restore them. Firstly, download the bash package to an empty directory. ason@Yog-Sothoth » bash » $ apt download…

Read More

How to use rsync to list filenames in a directory on a remote Linux server.

The rsync command with the –list-only parameter allows the user to list filenames on a remote machine. But by default, it looks like this. jason@Yog-Sothoth » ~ » $ rsync –list-only [email protected]:/home/jason/Documents/ [email protected]’s password: drwxr-xr-x 4,096 2018/05/09 09:49:49 . -rw-r–r– 867,863 2018/04/19 12:44:56 altis_insurgency_altis.pbo -rw-rw-r– 681,638 2018/05/04 09:03:16 pg768.txt -rwxrwxr-x…

Read More

Very useful Linux files to setup your installation.

Linux configuration files Here are a few useful Linux configuration files to get your installation setup and working just fine. ~/.vimrc. This is to setup the VIM editor and make it easier to use for the average Linux user. " ~/.vimrc (configuration file for vim only) " skeletons function! SKEL_spec()…

Read More

How to list the password files on a Macintosh OSX Sierra computer.

Get ahold of the Mac OSX Sierra password files This is how to list the password files on a Macintosh machine, but the folder is only readable by the superuser. deusexmachina:~ jason$ sudo ls -l /var/db/dslocal/nodes/Default/usersdeusexmachina:~ jason$ sudo ls -l /var/db/dslocal/nodes/Default/users This will return a listing of many files that…

Read More

Very comprehensive .bashrc file for your Linux system.

Complex .bashrc file for Linux or UNIX Very good and very complex .bashrc file for a Linux or UNIX system. I used this one ages ago and it is great to use. I have tried this on FreeBSD and Open Solaris and it works on either. #!/bin/bash # mode:shell-script #…

Read More

Finding files with the Linux command line. Using find & locate.

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. neo@deusexmachina:~/Documents$ find -name "*.c"…

Read More

Some useful Linux configuration files. How the system is setup.

Some system configuration files on Linux and what they do /etc/profile This configuration file controls the system-wide environment variables. This contains the PATH variable that controls where binaries may be run from system-wide. /etc/motd This file contains a message that will be visible above the login prompt on the virtual…

Read More

How to search for files on a Windows machine with the command line. And some other useful tricks.

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…

Read More