Posts

Showing posts with the label Commands

3 Reasons to Learn Linux Commands in Multiple Linux Distributions - Linux Training Online

When you learn a Linux command in one distribution (version), you’ve learned that command for ALL Linux distributions! Linux Training Tips: The commands we’re talking about here are the very popular GNU / Linux commands that are common to every distribution, including including: Red Hat, Fedora, Ubuntu, Kubuntu, Edubuntu, Slackware, Debian, SUSE and openSUSE. These are the essential commands required for Linux System Administration, like the cd, ls, cp, rm, pwd and mkdir commands. 3 Reasons for Learning How to Use Linux Commands in Multiple Distributions 1. Your Company May Change to a Different Linux Distribution Distributions change in popularity constantly. If you work in a company that is currently using just one distribution, the company may change to a different one. By learning commands, you are learning how to use Linux in all distros at once! Linux Training Tips: Except for a very few differences in the way that a very few commands work, the GNU / Linux commands a...

Linux Commands Training Quick Tips - Understand How to Use Linux Directory and File Names - Red Hat

Linux directory and file names are “case sensitive” and can be up to 255 characters in length. To avoid using one of the many (approximately twenty) “illegal” characters, just use the letters a-z, A-Z and the numbers 0-9 for your Linux directory and file names. To make your Linux commands easier to run, you may want to always use lower case letters for directory and file names. Some programs will not work properly with directories and files that contain spaces. Therefore, it is best to avoid using spaces and use the – (dash) or _ (underscore) character instead, if necessary. A – (dash) is often useful in a directory or file name – to make a directory or file name easier to read. A directory or file name can contain a suffix (a.k.a. file extension) at the end of the directory or file name. This is a . (dot) followed by one or more characters, such as “ .o “, “ .ps ” and “ .png “. It can even include another . (...

Running Linux Su and Sudo Commands to Work As Root and Viewing the Linux Root User Home Directory

Example of Using the Linux su Command Run the Linux su command with the dash option, as in “su -” (but not quotes). Then type in the password for the root user and press Enter. If you’re using Ubuntu, see the alternate steps below. Now type in the pwd command and press Enter to see your “path to (current) working directory”. If the su (superuser) command above worked, you should see the directory path of /root which indicates that you are now working as the root user at the Linux command line. Type in exit and press Enter to go back to working as a “regular” user. Example of Using the Linux sudo Command If you’re using Ubuntu or a variation, such as Kubuntu or Edubuntu, then run “sudo -i” (again, without the quotation marks) to start working at the command line prompt as the root user. You will need to type in the password of the first Linux user created on your system (during installation) and press Enter after running the sud...