Introduction to Linux

From Void-Byte
Jump to navigation Jump to search

Basic Commands

These are the most basic commands that you should know as a Linux System Administrator.

Command Syntax

Commands that utilize the Bash shell follow this common syntax.

command [-options] [arguments]

Commands

Name Description Syntax Example
cat Used to concatenate files, and print to stdout. cat [-options] <path/file> cat readme.txt
cp Used to copy files and directories. cp [-options] <source> <destination> cp -R olddirectory newdirectory
echo Used to print text to stdout. echo [-options] <string> echo -e This my first line \n This is my second line
ls Used to list directory contents. ls [-options] <path/file> ls -alh /var/log
mkdir
mv
pwd
touch