≡ Menu

Filesystem Tutorials and HowTos

Tutorials and commands about Linux, Apple OS X, BSD and Unix like file system. Includes file system management, creating file systems & volumes, software RAID, backups, recovery, and conman operations on file systems ( rss feed ).

How do I configure file system quotas to control how much available storage space can be used on a given UFS file system (such as /export/home) under Solaris UNIX operating systems?
[click to continue…]

How do I perform a simple and rather naive benchmark of the disks seek and transfer performance under FreeBSD operating system? How do I perform a simple measurement of the I/O read command overhead for my RAID-1 array under FreeBSD operating systems?
[click to continue…]

How do I allow domain controllers to create machine trust accounts on-the-fly under RHEL CentOS Linux version 5.x?
[click to continue…]

How do I remove all partitions, data and create clean empty hard disk under Linux operating systems?
[click to continue…]

My users will only be checking mail, and I want to disable FTP access as well as shell access under CentOS Linux. How do I disable shell (SSH) and FTP access to a new or old user under Linux without deleting user account?
[click to continue…]

I'm using dump command to backup file systems to tape and remote server. However, I'm not able to find any option that will allow me to exclude files or directories from backup. How do I force UNIX / Linux / FreeBSD dump command to exclude selected files (such as /var/cache or /usr/basejails) which I don't want to backup?
[click to continue…]

The portmapper assigns each NFS service to a port dynamically at service startup time. How do I allow legitimate NFS clients to access the NFS server using RHEL / Fedora / CentOS Linux 5.x iptables firewall?
[click to continue…]

Can you explain me usage of nullglob variable under BASH? How do I check for any *.c files in any directory?
[click to continue…]

How do I find out all world writable directories have sticky bits set under CentOS Linux server?
[click to continue…]

xargs: How To Control and Use Command Line Arguments

I am trying to use xargs command using shell pipes and not able to understand how to control and use command line arguments. For example I'd like to find out all *.c file located in 100s of sub-directories and move them to another directory called ~/old.src. How do I use command line args with xargs to achieve the same?
[click to continue…]