Similar Posts
/bin/rm: Argument list too long
BySamIf you have too many files to remove, try this trick: find . -name ‘*’ | xargs rm -v
Install Linux Centos 7, Nginx, MySQL, Postgres, PHP 8.0
BySamUpdate LANG Edit environtment vi /etc/environment add these lines… LANG=en_US.utf-8 LC_ALL=en_US.utf-8 Update and upgrade Core yum -y update yum -y upgrade Install NGINX yum install epel-release yum install nginx Start NGINX and Enable Service systemctl start nginx systemctl enable nginx Install PHP 8.0 Enable Remi Repo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm Check yum –disablerepo=”*” –enablerepo=”remi-safe” list php[7-9][0-9].x86_64…
How to remove non empty Directory in Linux
BySamI am getting an error message that read as follows: rmdir: failed to remove ‘trip-pictures’: Directory not empty How can I remove non empty directory in Linux using the cli? There are two commands that one can use to delete non empty directories in Linux operating system: rmdir command – Delete directory only if it…
Listing Sizes in AWS S3 Buckets
BySamListing sizes in AWS S3 Buckets Getting the whole bucket size aws s3 ls s3://$BUCKETNAME/ –recursive –human-readable –summarize | tail -n2 Tail is used because otherwise all files will be printed on screen (but you may want that for some reason). Getting the size of a specific directory/file You just need to add the path…
How To Create a Linux Swap File
BySamIn this article, we will explain swap space, and learn how to create swap space using a swap file in Linux: this is important in case we don’t have a swap partition created on the hard disk. Swap space/partition is space on a disk created for use by the operating system when memory has been…
Common SSH Commands
BySamHome and navigation When you first log into your server, you will be in your home directory. For the root user, this is /root/. Linux folder structure Linux uses a nested folder structure to store different files. The top-level directory is considered the root directory, and is designated by /. Folders beneath the root level…
