How the Linux directories such as /usr and /bin came to be.
The origins of the Linux user directories. This is fascinating.
The origins of the Linux user directories. This is fascinating.
A very useful C program to list all files in a directory. This might be very useful.
Why having a separate home directory is a good thing when you need to reinstall Linux for some reason.
What the ~ actually means on Linux and where it leads.
A couple of ways to list a directory without using ls. This could be a very useful Linux tip.
How to mount a directory and access the files as your normal Linux user easily, this is a very useful networking tip when using a Linux server on a LAN.
Back up your home directory with this simple script. This will concatenate all of your files into one tar archive, then compress it into a gzipped file. Firstly, install the required applications. ┌──(john㉿DESKTOP-PF01IEE)-[~/Documents] └─$ sudo apt install pv pigz┌──(john㉿DESKTOP-PF01IEE)-[~/Documents] └─$ sudo apt install pv pigz This is the backup script I am using. This will … Read more
The ls command on Mac OSX works a little differently than on a Linux machine, but listing only directories is very simple. This is one example, using only the ls command. deusexmachina:Documents jason$ ls -ld — */ drwxr-xr-x 3 jason staff 102 5 Mar 2018 POL/ drwxrwxrwx 31 jason staff 1054 7 Jan 2018 Stalker … Read more
Securing your website against online attacks is very important. There are many online tools and distributions like Backtrack and Kali that have mass-scanning tools to use against a website. Below is what a mass-scanning attack on a website looks like. This is searching for vulnerable scripts on an Apache website. As you can see, this … Read more
To get proper directory indexing set up in a directory in your Apache webserver configuration, firstly, create a .htaccess file and paste the code below into it. Options +Indexes HeaderName HEADER.html ReadmeName FOOTER.html IndexIgnore .htaccess .??* *~ *# HEADER* FOOTER* README* RCS CVS *,v *,t *.incOptions +Indexes HeaderName HEADER.html ReadmeName FOOTER.html IndexIgnore .htaccess … Read more
To find the largest file in a directory; use the du command and this will return the information you are after. Using the pipe symbol to send the text through to the head command will allow us to only return the one file we are interested in. jason@jason-desktop:~/Documents$ find . -type f -exec ls -al … Read more
Deleting a directory on Linux is very easy indeed. The rmdir command will perform this task adequately. You could also use the rm -rf abc/ command to delete a directory, but rmdir is easier to remember. eyjafjallajkull% rmdir abceyjafjallajkull% rmdir abc The rmdir command will not be able to delete a directory that is not … Read more
How to create a shared folder on a Linux machine that a group of users may access. This is very useful for a shared folder that many users may place files. Firstly; you need to create a folder in the /opt directory. root@neo:/opt# mkdir sharedfilesroot@neo:/opt# mkdir sharedfiles Then you need to set the proper permissions … Read more
I was setting up a Windows Server 2008 machine today with Active Directory and I was struck by the power that the Active Directory group policies give to the systems Administrator in terms of managing your client desktop machines and creating a unified locked-down desktop across all workstations. There is a HOWTO on adding a … Read more