Search results fordirectory

How to compress a whole directory in Linux using gzip format

H

How Can We Help? Search Print How to compress a whole directory in Linux using gzip format via the command line?   This is a perfect way of creating backups of your files and folders or emailing filesto a friend or colleague. This could also be called a compressed archive. First this command creates the archive and then it compresses the archive.   Lets put it to practice You have...

How to find out how much space a directory takes up using Linux

H

How Can We Help? Search Print In the command line type the following command within the desired directory {codecitation class=”brush: bash;”}du -c{/codecitation} This will give you the usage/size of all the folders within that particular directory.  du =  estimate file space usage -c = total To get the size/usage in a Human readable format eg. Megabytes/Gigabites append the -h option...

How to change to the previous working directory on the command line on Linux

H

How Can We Help?

Search

Print Type in the command below to go to your previous working directory

cd -

or

cd $OLDPWD

Points to remember

The “-” is short for previous working directory.
The previous working directory is defined by the shell variable $OLDPWD.
Everytime you use the cd command it sets the $OLDPWD environment variable.
Thus cd $OLDPWD is the same as cd –

How to find files in a directory that where modified in the last 14 days using Linux

H

How Can We Help? Search Print Type in the following command find /var/www/ -mtime -14 this will find all files that where modified within the last 14 days within the /var/www/ directory. We use the -mtime test to get all the modified files.   To only find .txt files that were modified within the last 14 days within the /var/www/directory we would use this command find /var/www/ -mtime -14 |...

How to get the size of a directory using the command line in Linux

H

How Can We Help? Search Print Open a new Terminal Window and type the following command: du -shc folderPath Explanation of the du command: du - estimate file space usage -s, --summarize, display only a total for each argument -h, --human-readable, print sizes in human readable format (e.g., 1K 234M 2G) -c, --total, produce a grand total   Replace folderPath with the folder to check the size...

Joomla! 1.5 – JFolder::create: Could not create directory Warning! Failed to move file

J

How Can We Help? Search Print When trying to install a new Component, Module, Template or Plugin using Joomla! 1.5 I receive the following error JFolder::create: Could not create directory Warning! Failed to move file. Question: How do I solve this? Answer: To solve this issue access the configuration.php file in the root folder where your Joomla! files are located. Open the configuration...

PHP Script that deletes files within a remote directory via FTP older than a given amount of days

P

How Can We Help? Search Print The following PHP script lets you connect to a remote location via PHP’s FTP functionality and delete all files older than a certain amount of given days in that directory, it also provides functionality to list files that should be ignored in a array, these files listed in the array won’t be deleted even if they are older than the given days. This script...

Top 5 Best WordPress directory theme (2018)

T

A directory site has a massive listing of businesses. If a site is successful, it will have a listing of 1000+ business. A small site may have fewer listings. SEO plays a key role in deciding the fate of a directory site. A well-optimized website will rank high in search engines. A good example of this is Yelp, a large restaurant directory site that ranks at number 1 position in Google SERPs for...

TypeScript Demystified

T

TypeScript can be a confusing term for anyone new to JavaScript development. The first impression of TypeScript for beginners is that it is a programming language, more or less, similar to JavaScript. Even professionals with enough coding experience often fail to define TypeScript. So how can we put the answer to this question – What is TypeScript? TypeScript is a superset of JavaScript. It...

Low-Code Development with OpenText AppWorks

L

This is post 3 of 4 in the series “OpenText AppWorks” A series of easy to follow articles introducing the AppWorks platform, standing up a local development environment, and developing within the low-code toolset. Standing up OpenText AppWorks 20.2 Docker Containers in 10 Minutes Setting up a Local SVN Container for your AppWorks Development Environment Low-Code Development with...

Quick Intro to Express.js

Q

If you have ever come across Node.js, then you may have heard the word “Express.js”. Express is also a part of popular full-stack web development stacks – MEAN and MERN. M, A/R, and N, meaning MongoDB, Angular/React, and Node.js, respectively are very popular in the web development community, while E, i.e. Express.js is unpopular. Many developers who work with MEAN or MERN stack...

Up and Running in Node.js for Beginners

U

The word “Node.js” is very popular today in the web development community. Everyone is talking about Node.js. The IT giants, startups, everyone wants Node.js developers. But what is Node.js and why it is so popular? Simply put, Node.js is nothing but JavaScript outside the browser. Yes, you read it right. Node.js is JavaScript that runs outside the browser. Not much difference, right...

Creating a Super Simple JavaScript Validated Form

C

There are times when you need to create a basic HTML form that provides validation to end users. Without leveraging a framework or additional libraries, this can be easily achieved by using JavaScript directly. This article walks through the basic steps of creating a simple validated form using basic selectors and error handling. Our requirements are: For successful submission, all fields must be...

Standing up OpenText AppWorks 20.2 Docker Containers in 10 Minutes

S

This is post 1 of 4 in the series “OpenText AppWorks” A series of easy to follow articles introducing the AppWorks platform, standing up a local development environment, and developing within the low-code toolset. Standing up OpenText AppWorks 20.2 Docker Containers in 10 Minutes Setting up a Local SVN Container for your AppWorks Development Environment Low-Code Development with...

AWS CodePipeline for Static Websites

A

AWS offers an immense array of features for deploying and managing complex sites. There are however a lot of use cases where you want to quickly setup an easy to use pipeline for deploying static websites (without a build process). I am going to cover how to get started using AWS to setup a basic no-frills web server using an easy-to-use deployment setup via AWS code repository and deployment...

Top 8 Best Business Listing Sites (2018)

T

The number of internet users has grown from 100 to 3+ billion. Although a lot of firms have benefited from the internet revolution, many businesses have become bankrupt. eCommerce platforms have destroyed the business of 1000s of brick and mortar stores. The only way to survive the wrath of these sites is to make people aware of your shop/service and the products you sell. Listing a business...

How to install new brushes in Photoshop CS4

H

How Can We Help? Search Print NOTE: This has been done and tested in Photoshop CS4 installed on Windows Vista Business Download your new set of brushes and copy the abr file eg. brushes.abr to the following directory “c:\Users\YOURNAME\AppData\Roaming\Adobe\Adobe Photoshop CS4\Presets\Brushes“. NOTE: This path may differ in different versions of Windows Open Photoshop CS4 Press...

About Author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

Follow Me