Linux Kernel has a modular design where modules can be plugged in and out if and when required. So, if we plug in a new hardware that requires a driver, a relevant module is automatically loaded to the Kernel. If a module is not being used anymore then it may be unloaded automatically. udev is […]
In the previous post Linux File System Permissions – Basics we learned about the basic permissions on files and folders. How does the system know what are the default permissions when you create a file/folder? Let’s create a new file as an ordinary user.
[anna@localhost ~]$ touch examplefile
[anna@localhost ~]$ ls -l
-rw-rw-r--. 1 anna anna 0 Jun 29 15:03 examplefile
So, I added a file called examplefile as user anna. The […]
Script below will move files from source to destination that match the given extension or all files if no extension is provided. The files older then 30 days are moved by default. you can specify the number of days using the -olderthandays parameter. [CmdletBinding()] param ( [Parameter(Mandatory=$true)][string]$source, [Parameter(Mandatory=$true)][string]$destination, [string]$exten=”.*”, [int]$olderthandays = 30 ) $lwt = […]