TrainingGuide

docx

School

University of Maryland, University College *

*We aren’t endorsed by this school

Course

391

Subject

Computer Science

Date

Dec 6, 2023

Type

docx

Pages

11

Uploaded by ColonelGalaxyGoldfinch4

Report
Project 3: Training Guide CMIT 391 6382 7/6/2021 1
Training Guide Introduction Let me be the first to congratulate you on switching to Linux to support your business needs. The road ahead has endless possibilities for your company no matter the size. Below we will be going over a few basic commands to run in a Linux terminal. We will explain what they and provide a screenshot to match to be used as a reference. Commands: 2
A listing of files in a directory and common file attributes: The Ls command is very basic and one that will be used often. When used by itself it displayes all files and directories within the file system. As shown above there are eight directories and one file on my system. The current directory : 3
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
If you find yourself getting lost or need to know what directory you’re in, you’ll use the pwd command. PWD stands for print working directory and is also one of the more basic commands to remember. Create a file, then copy it to a different directory: There are a few ways to create a file within Linux. To keep things as watered down as possible we will use the touch command. Simply type touch followed by a space then the name of the file you’d like to create. As shown above I created a text file named trainingfile2.txt . It is as simple as that and if you need to move the file you just created or any file for that matter you will use the copy command. To copy a file simply type cp yourfilename /DestinationDirectory . Follow that scheme and you can move files around as long as your account has the rights to. Create a second file and move it to a different directory: The steps will remain the same to create additional files and copying them to other directories. If a new directory is required the mkdir command followed by the name of the new directory will create it for you. This command is included in the previous screenshot. Remove the first file, as well as the copy you created: 4
To remove or delete files in Linux there are two different ways you can use. You can unlink filename for a single file or rm file names for multiple files. You can follow this command with the ls command to view your directory to verify the files are gone. The manual page for a given command. 5
To find the manual page for any given command you will use the man command followed by the command you want to look up. Above I did it for the ls command. As you can see it shows a description as well as that commands arguments. Create a text file, then use an editor to modify the content. Then display the content of the modified file. 6
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Now to edit a new text file that we created. For this, we will use the Vi editor. Type vi textfilename and press enter. It will clear the screen for you to input text into the file selected. Once done simply hold ESC and type :wq! To save the file and exit. To view the contents of the file you just edited type cat textfileedited as shown above to see the results. Show running processes on the system. Demonstrate how to search for a specific process. 7
In Linux you can view processes via apps similar to Windows or you can view them through the terminal. Type top command and the processes will be shown. I have also included a help menu for this command. 8
Forcibly stop a running process. To force close a task you will use the kill command. Type k and the process to be terminated. Part 3 Conclusion There is still a lot to learn within Linux but with this document, you should feel comfortable in getting in and looking around. Linux is open source so there is no limit to what can be done. 9
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Please hang on to this document for future reference and keep in mind there are a variety of instructional how-to videos online. Welcome to the Linux team! 10
Sources: Linuxize. (2019, September 1). How to Remove Files and Directories Using Linux Command Line . Linuxize. https://linuxize.com/post/how-to-remove-files-and-directories-using-linux- command-line/?linuxize-blog%5Bquery%5D=top. How to List Running Processes in Linux: A Beginner's Guide . Hostinger Tutorials. (2021, May 18). https://www.hostinger.com/tutorials/vps/how-to-manage-processes-in-linux-using- command-line. man(1) - Linux manual page. (n.d.). https://www.man7.org/linux/man-pages/man1/man.1.html. Linux Edit file - javatpoint . www.javatpoint.com. (n.d.). https://www.javatpoint.com/linux-edit- file. 11