Linux Implementation Proposal: Training Guide

profileknightply1
Sample-Linux_Implementation_Proposal_Training_GUide.docx

Linux Implementation Proposal: Training Guide

Prepared for:

Faster Computing

Prepared by:

Titus Hall

Contents Introduction 3 Command-Line Operations 3 Listing of files in a directory and common file attributes 3 The current directory 4 Create a file, then copy it to a different directory 5 Create a second file and move it to a different directory 5 Remove the first file, as well as the copy you created 6 The manual page for a given command 8 Create a text file, then use an editor to modify the content and display it 8 Configure Technology 11 Show running processes on the system 11 Forcibly stop a running process 11 Unique Identifier 12 Conclusion 12

Introduction

The purpose of this training guide is to equip users with the basics of Red Hat Enterprise Linux 8 to augment their productivity, such as by making it easier to navigate the Linux system via the terminal. Key areas covered include listing the files in a directory, viewing the directory, creating and removing files from directories, editing files, viewing the manual page for different commands, showing and ending running processes. The hypervisor used in the guide is VMware Workstation.

Command-Line Operations

The following command-line operations are used in Linux, specifically Red Hat Enterprise Linux 8, to obtain the desired information.

Listing of files in a directory and common file attributes

The “ls” command is used in Linux to list files within a directory, including common attributes associated with the files. The files can be listed as follows:

a. “ls -a” is a command that shows all files and directories

b. “ls -l” command shows extended information about the directory files, including attributes like size, permissions, owner, and modified date.

c. “ls -s” show files by size

The current directory

The present working directory is accessed using the “pwd” command that stands for “print working directory,” starting from the root.

Create a file, then copy it to a different directory

To create a file and copy it to a different directory, the “cat” command (short for “concatenate”) is used first followed by the redirection operator “>” and then the file’s name (cat > “Filename”). The name depends on the file that has to be created, such as “FasterComputing.txt”. When copying the created file, the “cp” command is used including the file name, such as “cp filename source directory.”

a. Create a file using “cat > FasterComputing.txt.”

b. Copy it to a different directory, “cp FasterComputing.txt Desktop.”

Create a second file and move it to a different directory

The second file is created using the “cat” command and moved using the “mv” command. For instance, the “mv” command is used, including the file name, such as “mv SecondFile.txt Documents” moves the file “SecondFile.txt” to the “Documents” directory.

a. Create a file using “cat > SecondFile.txt.”

b. Move to another directory “mv SecondFile.txt Documents”

Remove the first file, as well as the copy you created

A file is removed using the “rm” command followed by the filename and another copied using “cp” followed by the file name. In this case, the “FasterComputing.txt” file is removed, and the second one that was copied removed using the same command after accessing the directory using the “cd” command followed by the directory name.

a. Remove first file, “rm FasterComputing.txt.”

b. Access the directory “cd Desktop” and remove the file using “rm FasterComputing.txt.”

The manual page for a given command

The manual page for a given command is accessed using the “man” command. A command for what is needed follows this line, such as the “man ls” command.

Create a text file, then use an editor to modify the content and display it

a. To create a text file, the “vi” command is used.

b. When “enter” is pressed, the content is displayed.

c. Press “a” to enter insert mode.

d. Enter “:wq” command to exit the insert mode.

e. Use the “vi” command to display the content created in the file.

Configure Technology

Show running processes on the system

Running processes are shown using the “ps” command, and a specific is searched using the “pgrep -f” followed by the process name. For example, process 16910 can be searched using “pgrep -f 16910” command.

a. Show the process

b. Search specific process

Forcibly stop a running process

Forcibly stop a running process involves killing it, and thus, the “kill” command with the name of the process (process ID) is used. The “ps” command is used to confirm if the process was killed successfully.

Unique Identifier

Conclusion

Command lines in Linux platforms, such as Red Hat Enterprise Linux 8, are similar, making it easier to master them. You can perform many tasks by mastering as many commands as possible or using the manual option to access commands that you might need. Ultimately, integrating Red Hat Enterprise Linux 8 will enable to Faster Computing’s realize benefits that range from improved security to stability.