ls -lhS | head -20 To delve further into sub directories set the R (for recursive) flag. ls -lhRS | head -20
Category: Linux
.htaccess file disappearing?
Server OS: Centos 5.x / VSFTPD Client: Windows 7 /Filezilla You have uploaded an .htaccess file to your FTP space. You click refresh and the file disappears. Do not worry. The file is there – it is simply not displaying as it is classed as a hidden file. If you have shell access then SSH Read More…
Clear your Bash History?
Simple! history -c
Adding a 2nd disk to a Debian VM and formatting as a partition
In this guide I am going to set up a new disk 100GB disk in a VM called v-debian After adding the disk to the VM log into the guest OS: Check the output using the following command: fdisk -l You’ll noticed that /dev/sdb is free Partition the new disk cfdisk /dev/sdb Select Read More…
What version of Centos am I running?
Simple tail /etc/redhat-release The output of this command will display something along the lines of: CentOS release 5.8 (Final)
You must be logged in to post a comment.