Linux Discovery Exercise -1

In: Computers and Technology

Submitted By aziazi
Words 805
Pages 4
Chapter 1

1. Use the whatis command to determine the purpose of the ls command.
Command: whatis ls
Explanation: ls displays the content of a directory

2. Use the man program to find out what the -R option does when used with the date command. output date and time in RFC 2822 format. Example: Mon, 07 Aug 2006 12:34:56 -0600
3. Use the man program to determine what other commands you should also see in relation to the clear command tput(1), terminfo(5)

This describes ncurses version 5.7 (patch 20100109).

4. Use the cal command to determine on what day of the week you were born. cal [[day] month] year]

5. Use the cal command to determine which year between 2005 and 2010 is a leap year.
Cal –j 31 12 2005 or cal 02 2005
Cal –j 31 12 2006
Cal –j 31 12 2007
Cal –j 31 12 2008
Cal –j 31 12 2009
Cal –j 31 12 2010

6. Clear the screen, and view the online manual to determine how to display today’s date in UTC. date -u

7. Display the current UTC.

8. Create a file called month containing the current month cal 9 2015 > month
9. View the contents of the month file you created in Exercise 8. more month less month
10. Use the who command to determine the idle time for users currently logged in, but output that information to a file called users_info. Next view the file you created. who > users_info
11. View the files, month and users_info, in sequence using only one command-line sequence of commands cat month.txt users_info
12. View the files month and users_info in sequence by using:
The less command less month.txt users_info
The more command more month.txt users_info


13. Create a file called who_info that contains the documentation for the who command. Next, use the less command to view the who_info file contents and scroll forward and backward through the information. Then use the…...

Similar Documents

Linux 1 Assignment 6.1

...IT250 – Linux 1 Assignment 6.1 10/2012 EXERCISES, Page 582 1. Which commands can you use from the command line to send a file to the default printer?  lpr/lp – sends job(s) to the printer  lpr – prints a file 3. Which commands list your outstanding print jobs?  lpq/lpstat – Displays the status of the print queue 5. Name three printing protocols that CUPS supports. Which is the CUPS native protocol?  System-config-printer  lpinfo Displays available drivers  lpadmin configures printers  The cups native protocol is IPP EXERCISES, Page 669 1. What advantage does a switch have over a hub?  Switches are faster and switches have a repeater which boosts your speed 3. Name two servers that allow you to share directories between systems.  NFS  Samba   5. What is a common function of a router? What is this function called?  A router connects a LAN to another network, such as the internet. A router can perform several functions, the most common of which is allowing several systems to share a single Internet connection and IP address is NAT. When a router uses NAT, the packets from each system on the LAN appear to come from a single IP address; the router passes return packets to the correct system.  A router can also act as a firewall. 7. Which tool can you use to configure a wireless NIC (rather than having it be configured automatically)?  The network manager applet  CLI: nm-connection-editor ADVANCED EXERCISES, Page 669 9. If......

Words: 276 - Pages: 2

Linux Week 1assignment 1

...NT1430 6/27/13 Unit 1 Exercises Assignment 1 Unit 1: 1. Free software is something that is free from the hands of the people you get it from and from this you can change it and modify it to what fits your needs. a. One characteristic of a free software is that the code must go along with the program. b. Users are encouraged to modify the code to make it better and share it with others. c. And lastly you can’t stop or restrict people from sharing this free software. 4. The Free Software Foundation/GNU was a project that was started by Richard Stallman who believed that giving the resources for free software was the way of the future. He also wrote the GNU kernel and system. Linux was developed by Linus Torvalds and was first introduced in September of 1991. Thousands of people world wide have helped make Linux/GNU what it is today. Unit 2: 1. Installing Fedora/RHEL is when you copy the operating system from a CD/DVD and you set up the files so that it works properly on Linux. Unit 3: 1. A live system gives the user the chance to view Fedora without actually installing it. 4. You put /boot at the beginning of the first partition so that Linux has no issue from booting on the drive. 8. You have to set the runlevel to 3, which is text based, and then you can log in and change it to startx. Unit 11: 1. If you log into the system in single-mode you can only sign in at a designated console and some filesystems may not be loaded.......

Words: 364 - Pages: 2

Fadora and Red Had Enterprise Linux: Chapter 1 Exercise Answers

...Chapter 1 Questions What is free software? List three characteristics of free software.Free software is code that is available for free to everyone, but it is also free in the sense that it can be used and altered freely to the user's desires. It is free to be studied, redistributed, and modified. Why is Linux popular? Why is it popular in academia?Due to the operating system's distribution among universities, students were able to become used to it's sophisticated developing environment which helped these graduates succeed in the industry as UNIX was being spread throughout the world. What are multiuser systems? Why are they successful?Multiuser is a term that defines an operating system or application software that allows access by multiple users of a computer. They are so successful because they allow for collaborative projects to be conducted with much more ease and efficiency. What is the Free Software Foundation/GNU? What is Linux? Which parts of the Linux operating system did each provide? Who else has helped build and refine this operating system?The GNU is a completely free (in the freedom sense) operating system built by Richard Stallman and many of its components, except for the kernel, were completed in the early '90s. Linus Torvalds wrote the kernel for Linux, which was also intended to be a free operating system, in the early '90s. The two systems then were combined together to finish Linux, with it's original kernel and added features......

Words: 663 - Pages: 3

Linux Chatper 1

...Michael George Linux Networking 6/23/2014 CHAPTER 1 1. What is free software? List three characteristics of free software. Free software is software that users have the freedom to distribute and change. 3 characteristics are: 1. Source code has to be distributed with the program. 2. You cannot restrict people from redistributing/modifying/using the software. 3. Users must be allowed to redistribute modified versions under the same terms/licensing. 4. What is the Free Software Foundation/GNU? What is Linux? Which parts of the Linux operating system did each provide? Who else has helped build and refine this operating system? GNU stands for "GNU'S Not Unix", and it was designed to be a UNIX-like operating system developed by Richard Stallman. Linux is the name of operating system kernel developed by Linus Torvalds. GNU's tools aside the Linux kernel make the operating system known as “Linux” aka “GNU/Linux”. Thousands of people helped refine the operating system online. CHAPTER 2 1. Briefly, what does the process of installing an operating system such as Fedora/RHEL involve? Installing Fedora/RHEL is the process of copying operating system files from a CD, DVD, or USB flash drive to hard disk(s) on a system and setting up configuration files so Linux runs properly on the hardware. Several types of installations are possible, including fresh installations, upgrades from older releases of Fedora/RHEL, and dual-boot installations. CHAPTER 3 1. What is a live...

Words: 539 - Pages: 3

Linux Security Lab #1

...1) During the install, the option to sync with a NTP server was checked. From a security perspective, why is it important for a system to keep accurate time? So, there can be a log if server went down and accurate time when and changes occurred 2) During the install, a password has been set for the “root” user. What is the root user, and when is it appropriate to use this account The root account is the most privileged account on a Linux system. This account gives you the ability to carry out all facets of system administration, including adding accounts, changing user passwords, examining log files, installing software, etc. If, you changing password you should do it in root user, but for security reason you should never user root account since it’s an administrator account. 3) During the install, X-Window and Desktop Manager were installed. However, in a production environment it is recommended not to run the X- Windows environment. Explain the purpose of this recommendation Linux is a command base program and X- Window is GUI therefore it is not recommended. During Linux installation, deselecting X Window packages, especially the base packages, will return errors concerning failed dependencies. You can safely deselect all of these applications, in addition to X itself 4) During the installation process it asks what the option given to create the partition are? Name them Ext 2 and Ext 4 5) Why is it important to partition a Linux system......

Words: 1044 - Pages: 5

Linux Chapter 1

...Chapter 1 Introduction to Linux At a Glance Class Notes Table of Contents • Overview • Objectives • Teaching Tips • Quick Quizzes • Class Discussion Topics • Additional Projects • Additional Resources • Key Terms • Technical Notes for Hands-On Projects Lecture Notes Overview Linux technical expertise is essential in today’s computer workplace as more and more companies switch to Linux to meet their computing needs. Thus, it is important to understand how Linux can be used, what benefits Linux offers to a company, and how Linux has developed and continues to develop. In the first half of this chapter, you will learn about operating system terminology and features of the Linux operating system, as well as the history and development of Linux. Later in this chapter, you will learn about the various types of Linux and situations in which Linux is used. Chapter Objectives In this chapter, you will learn to: • Understand the purpose of an operating system • Outline the key features of the Linux operating system • Describe the origins of the Linux operating system • Identify the characteristics of various Linux distributions and where to find them • Explain the common uses of Linux in industry today Quick Quiz 1 1. What term is used to describe a running program on Linux? a. Application b. Process c. Runtime d. Project 2. What is......

Words: 3777 - Pages: 16

Linux Discovery Exercise 1

... 1. Use the whatis command to determine the purpose of the ls command. whatis what? [will@localhost ~]$ whatis man man (1) - an interface to the on-line reference manuals man (7) - macros to format man pages man (1p) - display system documentation 2. Use the man program to find out what the -R option does when used with the date command. SYNOPSIS date [OPTION]... [+FORMAT] date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]] DESCRIPTION Display the current time in the given FORMAT, or set the system date. -r, --reference=FILE display the last modification time of FILE 3. Use the man program to determine what other commands you should also see in relation to the clear command SEE ALSO tput(1), terminfo(5) This describes ncurses version 5.9 (patch 20140323). 4. Use the cal command to determine on what day of the week you were born. will@localhost ~]$ cal 5 1975 5. Use the cal command to determine which year between 2005 and 2010 is a leap year. [will@localhost ~]$ cal 2 2008 February 2008 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 6. Clear the screen, and view the online manual to determine how to display today’s date in UTC. Clear date -u 7. Display the current UTC. Tue Feb 10 15:10:57 UTC 2015 8. Create a file called month containing the current month cal 2 2015 > month ...

Words: 921 - Pages: 4

Linux Ch 1

...1. What is free software? List three characteristics of free software. Free software is software that users can change and distribute without any repercussions. The characteristics of free software is that the software can be used for any purpose, can be studied and changed and can be distributed with the changes made. 3. What are multiuser systems? Why are they successful? Multiuser systems allows many people to use all of the resources of the system at the same time. This makes the system successful because the resources available can be used to its utmost potential so its growth is always on the rise. 5. In which language is Linux written? What does the language have to do with the success of Linux? Linux is written in C which means that that it is portable. In this way it makes it successful for it can be adapted to different machines and allows it to complete tasks on almost any platform. 9. What is a shell? How does it work with the kernel? With the user? A shell is a command interpreter which is the link between you and the operating system. Shells can arrange a file for later execution using scripts which help with operations and keep kernels on a priority list. This also makes it so users can issue short commands that perform highly complex operations. 11. Why is the Linux filesystem referred to as hierarchical? The filesystem of Linux is hierarchical due to its structure of arranging files under directories. These directories can hold other......

Words: 388 - Pages: 2

Nt1430 Unit 1 Exercises

...Unit 1 exercises Chapter 1 1. What is free software? List three characteristics of free software. • Software may be used for any purpose • The sources may be studied and changed • The software may be distributed arbitrarily 4. What is the Free Software Foundation/GNU? What is Linux? Which parts of the Linux operating system did each provide? Who else has helped build and refine this operating system? • The Free Software Foundation is the principal organization sponsored by the GNU Project. GNU developed multiple of tools, which included the C compilers that are part of the GNU/Linuc Operation System. • Linux is a name of the operating system kernel developed by Linus • Torvald’s kernel and a GNU’s tools work together as GNU/Linus Operation System Chapter 2 1. Briefly, what does the process of installing an operating system such as Fedora/RHEL involve? • Installing Fedora/RHEL is the process of copying operating system files from a CD, DVD, or USVB flash drive to hard disk(s) on a system and setting up configuration files so Linux runs properly on the hardware. Several types of installations are possible including fresh installations, upgrades from older releases of Fedora/ RHEL, and dual-boot installations. Chapter 3 1. What is a live system? What advantages does it have over an installed system? • A computer that runs the Wide Area Progressive games and displays the main system window. The advantages are Customization, cost, free market, stability,......

Words: 498 - Pages: 2

Linux Unit 1 Homework

...Pg. 20-21 EX 1) Free software is software that respects users' freedom and community. Roughly, it means that the users have the freedom to run, copy, distribute, study, change and improve the software. 4) The Free Software Foundation is a nonprofit with a worldwide mission to promote computer user freedom and to defend the rights of all free software users. Linux is an open-source operating system modelled on UNIX. Linux is basicly the GNU system. Everyday users have help define this system. Pg. 50 EX 1) Installation of the Fedora/RHEL system involves a. Make sure the BIOS is set to boot from CD/DVD b. Insert the DVD in and reset the computer c. Computer BOOTs from DVD d. Make sure select the boot command line and begin installing Pg. 86 EX 1) A live system usually means an OS booted on a computer from a removable medium. Your OS is portable. I am assuming that you are using USB stick for your live OS. 2. Partitioning headaches for newbies are not there. 3. You can start testing and experiencing any other distro easily if you don't like the current one. 4) Put /boot at the beginning of the drive (partition 1) so that there is no issue of Linux having to boot from a partition too far into the drive. 8) When the system enters runlevel 5 Pg. 498 EX 1. When a system is in single-user Mode you can log in only at the console. With the system in multiuser mode you can log in at any terminal or workstation that is set up...

Words: 386 - Pages: 2

Discovery Exercises Chapter 1

... Guide to Linux+ (2nd Edition) ISBN 0-619-21621-2 End of Chapter Solutions Chapter 1 Solutions Review Questions 1. Every computer consists of physical components and logical components. The logical components of a computer that understand how to work with the physical components are referred to as: a. hardware b. records c. software d. processors Answer: c 2. The operating system software is necessary for a computer to function. True or False? Answer: True 3. Linux is a ___________ and ___________ operating system. a. production, stable b. multiuser, multitasking c. processing, operating d. large, useful Answer: b 4. The core component of the Linux operating system is the Linux kernel. If you were a Linux systems administrator for a company, when would you need to upgrade your Linux kernel? (Choose all that apply.) a. when you need to have support in Linux for new hardware b. when you need another user interface c. when you need to increase the stability of Linux d. when you need to use kernel modules Answer: a, c 5. Which of the following kernels are developmental kernels? (Choose all that apply.) a. 2.3.4 b. 2.5.5 c. 2.2.7 d. 2.4.4 Answer: a, b 6. A production kernel refers to a kernel whose: a. revision number is even b. minor number is odd c. major number is odd d.......

Words: 1316 - Pages: 6

Linux Research Assignment 1

...1. What is the meaning of the acronym LAMP, and how is it used for creating dynamic websites? A: Lamp stands for “Linux, Apache, MySQL and PHP.” Together these software technologies can be used to form a fully-functional web server. Linux is the most popular operating system used in web servers. The most important of these four technologies is Apache, Apache is the software that serves webpages over the Internet via the HTTP protocol. Once Apache is installed, a standard Linux machine is transformed into a web server that can host live websites. Other components of LAMP include MySQL and PHP. MySQL is a popular open source database management system (DBMS) and PHP is a popular web scripting language. Together, these two products are used to create dynamic websites. Instead of only serving static HTML pages, a LAMP server can generate dynamic webpages that run PHP code and load data from a MySQL database. 2. For Internet websites which are located throughout the entire world, what is the estimated market share for dynamic websites which use LAMP as opposed to Microsoft IIS and the Microsoft Active Server Page scripting language? A: As of today, LAMP (Apache) = 56.4% and Microsoft IIS = 12.9% and I cannot find the percentages for the Microsoft Active Server Page. 3. What is PHP? A: PHP is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. 4. What is the JAVA Server......

Words: 353 - Pages: 2

Discovery Exercise

...Discovery Exercises 1.Use the whatis command to determine the purpose of the ls command. 2. Use the man program to find out what the -R option does when used with the date command. 3. Use the man program to determine what other commands you should also see in relation to the clear command. 4. Use the cal command to determine on what day of the week you were born. 5. Use the cal command to determine which years between 2006 and 2015 are leap years. 6. Clear the screen, and view the online manual to determine how to display today’s date in UTC. 7. Display the current UTC. 8. Create a file called month containing the current month. 9. View the contents of the month file you created in Exercise 8. 10. Use the who command to determine the idle time for users currently logged in, but output that information to a file called users_info. Next, view the file you created. 11. View the files, month and users_info, in sequence using only one command-line sequence of commands. 12. View the files month and users_info in sequence by using: The less command The more command 13. Create a file called who_info that contains the documentation for the who command. Next, use the less command to view the who_info file contents, and scroll forward and backward through the information. Then use the tail command to view the final 12 lines of the who_info file. Finally, use the head command to view the first 12 lines of the who_info file. 14. Create a file called......

Words: 508 - Pages: 3

Linux Ch 1

...1) Your boss drops by your office in a hurry to ask you to attend a meeting at 10:30 on Friday morning and you can’t find a pen to make a note as a reminder. What Linux command can you use to make a quick note to store in a file called Meeting? - Meeting >> note 2) Before you make the note in Question 1, you decide to determine Friday’s date, so that you can include it in your note. What Linux command can you use to quickly determine Friday’s date? - cal 3) While you are typing a command, you misspell the name of a file you want to specify with the command. Which of the following command-line key combinations enables you to go back and fix your error? - Ctrl+b 4) You haven’t changed your user account password for several months and now decide to create a new password. Which of the following commands should you use? - passwd 5) You have forgotten the purpose of the -n option in the cat command. Which of the following can you enter at the Linux command line to find out what the -n option does when used with cat? - man cat 6) Which of the following is the UNIX distribution originally developed through AT&T Bell Labs? - System V 7) Which shell is used by linux as the default command interpreter? - Suse 8) You need to type in a line of text to the end of a file called Annual_Report. Which of the following commands enables you to add the text? - cat >> Annual_Report 9) SSH can be used to _____? -log in remotely to another computer on the......

Words: 316 - Pages: 2

Linux Exercises

...Exercises 1 1. What is free software? List three characteristics of free software. 2. Why is Linux popular? Why is it popular in academia? 3. What are multiuser systems? Why are they successful? 4. What is the Free Software Foundation/GNU? What is Linux? Which parts of the Linux operating system did each provide? Who else has helped build and refine this operating system? 5. In which language is Linux written? What does the language have to do with the success of Linux? 6. What is a utility program? 7. What is a shell? How does it work with the kernel? With the user? 8. How can you use utility programs and a shell to create your own applications? 9. Why is the Linux filesystem referred to as hierarchical? 10. What is the difference between a multiprocessor and a multiprocessing system? 11. Give an example of when you would want to use a multiprocessing system. 12. Approximately how many people wrote Linux? Why is this project unique? 13. What are the key terms of the GNU General Public......

Words: 1678 - Pages: 7