Occasionally, when operating a CentOS-based dedicated server you may find that you require additional software packages. If the required packages are not in the current repositories that you have enabled, then you may need to add repositories to the server in order to get the software you need. This technique can be used to acquire Read More >
Linux
How to Delete Repos on CentOS
When working with your CentOS server, you may find yourself in a position where you need to remove installed software packages. This may be the result of software no longer being needed for a given project, or it may be due to conflicts with other software that is installed. A group of software packages is Read More >
How to Import MySQL Databases in Command Line
In this tutorial, we will go over the steps on how to import MySQL databases within your command line interface. Using this method is just as easy as importing via the PHPMyAdmin software. However, the command line interface is preferred when you need to import SQL files over 50MB. For our shared servers you may Read More >
How to Install and Use the Htop Linux Command
When troubleshooting your server, sometimes the biggest problem is finding the problem. If something is going wrong, and you’re not sure what the problem is, the htop Linux command can help you figure out what’s going on. Read below for more tips on installing and using htop on your server. What Is the Htop Linux Read More >
Setting Your PHP Settings in Command Line
When you are running a PHP file from the command line (on VPS Hosting or otherwise), there may be times when you need to make changes to the PHP settings. In this guide, we will show you how to specify the php.ini file, and change a PHP setting in the command line. If you are Read More >
sed command
In this tutorial: Command structure Commands Examples Sed (short for ‘stream’ ‘editor’ is a special editor that is used for modifying files automatically. It is not an interactive editor, so it can be used if you are wanting to write a program to make changes in a file. Follow along below as we go through Read More >
cp command
In this tutorial: Command structure Examples At first, the cp command seems like a very straightforward command. While it is certainly a simple concept to copy a file or directory from one location to another, it has many different options involved to tailor the process. The cp command is also one of the most used Read More >
aspell command
Everyone needs a little spell checking in their routine. Even the best of us make mistakes. This article goes over the ‘aspell‘ Linux command for spell checking the contents of files that you specify. Command: aspell Synopsis: aspell [options] ] Commands: Command Long Name Description -? help Displays the help information. -c check filename Spell Read More >
alias command
When working with SSH and the command line interface, you may want to begin trimming down the number of keys you hit by creating aliases for the commands you use most often. This can help you move along faster when working on your site. This article goes over the alias command and how to use Read More >
rm command
The rm (remove) command uses a list of arguments that specifies either the absolute or relative path of the files to remove. Use this command with care as you cannot recover a file once it has been removed. Because of this, the base rm command will prompt you before deleting to give you a chance Read More >
chown command
Another commonly used linux command is the chown command. ‘chown‘ is short for change owner. It allows users to change the owner and group associated with a file. Command: chown Synopsis: chown [OPTION]… [OWNER][:[GROUP]] FILE… Options: Option Long option name Description -c –changes Operates like verbose (-v) but report only when a change is made. Read More >
chmod command
The chmod (short for change mode) command allows you to change permissions on files and folders. Command: chmod Synopsis: chmod [OPTION]… [MODE]… FILE… chmod [OPTION]… OCTAL-MODE FILE… Options: Option Long option name Description -c –changes Operates like verbose (-v) but report only when a change is made. -f –silent, -quiet Suppress most error messages. -v Read More >
mkdir command
The mkdir command allows you to create directories that you name. This command can create multiple directories at once or even multiple levels creating the parent directories along the way. Command: mkdir Synopsis: mkdir [OPTION]… [DIR]… Options: Option Long option name Description -m –mode=MODE Set permission mode (as in chmod), not rwxrwxrwx – umask. -p Read More >
grep command
Grep searches the named FILE(s) for lines containing a match to the given PATTERN. By default, thre results printed on the screen contain the entire matching line. Command: grep Synopsis: grep [options…] PATTERN [file…] Options: Option Long option name Description -A NUM –after-context=n Print NUM lines of trailing context after matching lines. Places a line Read More >
more command
The more command is used to display a small portion of a file at a time. If you wish to see the next entire page, simply press the spacebar. Pressing the enter key will simply display the next line of the file. This allows you to browse a file as you desire. It also takes Read More >
tail command
Much like the head command, the tail command comes in handy when working with larger files. Instead of pulling the first 10 lines of a file, tail pulls the last 10 lines of a file when using the base command. It also takes numeric options to allow you to tailor the number of lines displayed. Read More >
head command
If you are working with large files and want to see the first few lines of it, you can use the head command. The base command will display the first ten lines of the file. The command can also take numeric options to adjust the numberof lines displayed. Command: head Synopsis: head [OPTION] [FILE] Note Read More >
cd command
When navigating through your server you may want to change to other directories. The cd command is the bash command to allow you to move to other folders within your account. Command: cd Synopsis: cd [dir] Options: Option Long name Description -P This forces the command to use the physical directory structure and does not Read More >
The Linux history Command
The history command is used to display the list of previously typed commands. While the base command will list all previous commands used since the last clearing, it can also be tailored to display by the page or a certain number of commands. Command: history Synopsis: history [option] Options: Option Description -c Clears the history Read More >
tac command
The tac command is much like its brother, the cat command. It also concatenates and prints a file to the screen. However, the tac command does this in reverse. This can be especially useful if you are looking for information that should be at the end of a long log file. For instance, if you Read More >