It 250 Linux Command Line

In: Computers and Technology

Submitted By braza45
Words 640
Pages 3
/bin Essential command binaries Holds the files needed to bring the system up and run it when it first comes up in single-user mode. Holds system utilities

/boot Static files of the boot loader Contains all of the files needed to boot the system.

/dev Device files

/etc Machine–local system configuration files One of the most important is /etc/passwd

/etc/X11 Machine–local configuration files for the X Window System

/home User home directories

/lib Shared Libraries

/lib/modules Loadable kernel modules

/mnt Mount point for temporarily mounting filesystems

/opt Add-on software packages. (optional)

/proc Kernel and process information virtual filesystem

/root home directory for root

/sbin Essential system binaries Utilities used for system administration are stored in /sbin and /usr/sbin.

/sbin *also /sbin directory includes utilities needed during the booting process

/usr/sbin holds utilities used after the system is up and running

Older versions of linux In older versions of Linux, many system administration utilities were scattered through several directories that often included other system files (/etc, /usr/bin, /usr/adm, /usr/include).

/sys Device pseudofilesystem

/tmp temporary files

/usr Second major hierarchy. Traditionally includes subdirectories that contain information used by the system. Files in /usr subdirectories do not change often and may be shared by several systems.

/usr/bin Most user commands. Contains the standard linux utility programs. that is binaries that are not needed in single-user mode.

/usr/lib Libraries

/usr/local Local hierarch Holds locally important files and directories that are added to the system. can include bin, games,…...

Similar Documents

Linux

...NT1430 Linux Networking: Study Guide Wed 21-November-2012 Linux Commands: Know these commands and what they do: • Directory and list commands o ls, ls –l o pwd o cd / o cd and cd~ (hint: both take you to your home directory) o cd .. (takes you up one directory • Know what cp and mv do and how to use them • File viewing commands: o cat o less and more (one page at atime) o vi and view o tail (shows the last 10 lines of a file) o head (shows the top 10 lines) • chmod for changing permissions on files and directories • know the differences in read write and execute for owner group and all • > to redirect output to a file (overwrites if file exists) • >> appends to a file • & puts a process in the background while fg brings it to the foreground. • ps –ef | grep programname locates a running process for you • grep is a program that searches for a string within a directory or command output • The pipe symbol ( | ) sends output from one command to the input of another. • Know what a Linux shell script is. Direcories and file systems • / is the root of the entire file system • /usr stores program files • /home stores user home directories • /etc stores Linux configuration files • /var stores various miscellaneous files • /proc is a virtual directory that stores system performance metrics...

Words: 1137 - Pages: 5

Linux

...normally of two types: command line and graphical. Command line provides a command line interface (CLI) to the operating system whereas graphical provides a graphical user interface (GUI). Although there are more than 600 Linux distributions available for use but few are popular among the general users. Top five Linux distributions are: a) Ubuntu b) Fedora c) openSUSE d) Debian e) Slackware Ubuntu is the most popular version of Linux. There are numerous shells available for Ubuntu like GNOME, KDE, Unity, LXDE, and Cinnamon. Two most popular and widely used graphical shells in Ubuntu are GNOME and KDE. Bash shell is the widely used and default cli shell in Ubuntu. I have chosen bash shell to discuss the commands and function in Ubuntu. Bash is a command line interface where users can type the command to tell the computer what to do. It is faster and powerful medium to run any command or process. The commands can be divided in various categories: a) File and directory commands: The pwd command will allow users to know in which directory they are located. ls command lists all the files in the current directory. cd command allows user to change directory. cp command will make a copy of a file. mv command is used to move a file to a different location or rename a file. rm command is used to......

Words: 785 - Pages: 4

Lab 4.1: Using Linux Command-Line Basics

...Labs Lab 4.1: Using Linux Command-Line Basics What is the purpose? This lab demonstrates how to redirect data from a process and how to identify and kill a process. What are the steps? • Task 1: Redirecting and piping standard output Procedure 1. Obtain a list of files from the home directory, including the hidden files. Redirect the output to a file named Listing by using the ls -a > listing command. 2. Obtain a long list of files, including the hidden files, and append the output to the same file. 3. Use the cat listing | less command to view the file and pipe the output to less. 4. Use the cat command to view the file again. However, this time, pipe the output to lpr to print the file. 5. Redirect the output of ls to the special file /dev/null. What happens? It’s redirected to dev/null Why? It’s null. • Task 2: Putting tasks in the background and terminating the job Procedure 1. Use the tail –f command to view your listing file from the previous task. The –f option tells tail to follow changes; therefore, the file will continue to run this command until you cancel the command by pressing Ctrl+C. Put the file in the background using the tail -f listing & command. You may need to press Enter again to view the command prompt. 2. Put the process in the background and display the prompt again. Run the top command in the foreground. This will provide you a list of your top 20 processes by CPU usage. Put this list in the background and stop it by......

Words: 780 - Pages: 4

Linux

...must be allowed to redistribute modified versions under the same terms/licensing. 4. The Free Software Foundation is the sponsor of the GNU Project. GNU developed many of the tools that are part of Linux. Linux is the name of the operating system kernel developed by Linus Torvalds, which has been expanded and improved by thousands of people on the Internet. Torvalds’ kernel and GNU’s tools work together as the Linux operating system. Chapter 2 1. Installing Fedora/RHEL is the process of copying operating system files from a CD, DVD, or USB flash drive to hard disks 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. A live system gives you a chance to preview Fedora without installing it. It does not write to hard disks. 4. The ubiquity utility is a graphical installer written mostly in Python. It installs Ubuntu from a live session. 8. Remove quiet and splash from the boot command line. Press F6 from the initial install screen to display the boot command line. Press backspace or delete to back up and erase the two hyphens, quiet, and splash from the boot command line. Press enter. Chapter 11 1. When a system is in single-user mode, you can log in only at the console. Not all of the file systems are mounted, and many daemons are not running. With the system......

Words: 461 - Pages: 2

Linux Commands

...An A-Z Index of the Bash command line for Linux. alias Create an alias • apropos Search Help manual pages (man -k) apt-get Search for and install software packages (Debian/Ubuntu) aptitude Search for and install software packages (Debian/Ubuntu) aspell Spell Checker awk Find and Replace text, database sort/validate/index b basename Strip directory and suffix from filenames bash GNU Bourne-Again SHell bc Arbitrary precision calculator language bg Send to background break Exit from a loop • builtin Run a shell builtin bzip2 Compress or decompress named file(s) c cal Display a calendar case Conditionally perform a command cat Concatenate and print (display) the content of files cd Change Directory cfdisk Partition table manipulator for Linux chgrp Change group ownership chmod Change access permissions chown Change file owner and group chroot Run a command with a different root directory chkconfig System services (runlevel) cksum Print CRC checksum and byte counts clear Clear terminal screen cmp Compare two files comm Compare two sorted files line by line command Run a command - ignoring shell functions • continue Resume the next iteration of a loop • cp Copy one or more files to another location cron Daemon to execute scheduled commands crontab Schedule a command to run at a later time ...

Words: 1501 - Pages: 7

Intro to Linux

...A Practical Guide to Linux Commands, Editors, and Shell Programming SECOND EDITION ® Mark G. Sobell Upper Saddle River, NJ • Boston • Indianapolis • San Francisco New York • Toronto • Montreal • London • Munich • Paris • Madrid Capetown • Sydney • Tokyo • Singapore • Mexico City Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and the publisher was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals. The author and publisher have taken care in the preparation of this book, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the information or programs contained herein. The publisher offers excellent discounts on this book when ordered in quantity for bulk purchases or special sales, which may include electronic versions and/or custom covers and content particular to your business, training goals, marketing focus, and branding interests. For more information, please contact: U.S. Corporate and Government Sales (800) 382-3419 corpsales@pearsontechgroup.com For sales outside the United States, please contact: International Sales international@pearson.com Visit us on the Web: informit.com/ph Library of Congress......

Words: 228961 - Pages: 916

Linux

...www.it-ebooks.info Praise for Previous Editions of A Practical Guide to Fedora and Red Hat Enterprise Linux ® ® “Since I’m in an educational environment, I found the content of Sobell’s book to be right on target and very helpful for anyone managing Linux in the enterprise. His style of writing is very clear. He builds up to the chapter exercises, which I find to be relevant to real-world scenarios a user or admin would encounter. An IT/IS student would find this book a valuable complement to their education. The vast amount of information is extremely well balanced and Sobell manages to present the content without complicated asides and meandering prose. This is a ‘must have’ for anyone managing Linux systems in a networked environment or anyone running a Linux server. I would also highly recommend it to an experienced computer user who is moving to the Linux platform.” —Mary Norbury IT Director Barbara Davis Center University of Colorado at Denver from a review posted on slashdot.org “I had the chance to use your UNIX books when I when was in college years ago at Cal Poly, San Luis Obispo, CA. I have to say that your books are among the best! They’re quality books that teach the theoretical aspects and applications of the operating system.” —Benton Chan IS Engineer “The book has more than lived up to my expectations from the many reviews I read, even though it targets FC2. I have found something very rare with your book: It doesn’t read like the standard......

Words: 315186 - Pages: 1261

Linux Commands Codes

...1. LS- List Directory Content 2. CD- Change Directory 3. MV- Move/Remove Files and Folders 4. RM- Remove files and folders 5. CP- Copy File/Folders 6. LPR- Print Command 7. LPSTAT-Check Print Status 8. HEAD-View beginning content of file 9. TAIL- View ending of file 10. PWD- Print Working Directory 11. STARTX-Start X Server (GUI) 12. POWEROFF-Power off system (turn off/reboot) 13. INIT-Change runs levels 14. ALIAS- Substitute Commands 15. CHMOD-Change file & folder permission 16. CHGRP-Change group permissions (manage multiple/simplify people in network) 17. CHOWN- Change ownership of file or folder 18. CHKCONFIG- Check service configuration(bootup task management) 19. VI/VIM- Virtual Text Editor (command line) 20. CANCEL- Cancel Print Jobs 21. GREP- Search for strings 22. LOCATE- Search your system or files & folders 23. GROUPADD- Add group 24. USERADD-Add Users 25. GZIP-Compression Software 26. LPADMIN- Add/Modify Printer 27. CAT-View File Contents w/o Editing | 28. CHROOT- Security Feature (Chroot Jail) 29. FG-Move processes to foreground (forward) 30. BG-Move processes to background 31. USERDEL-Delete Users 32. GROUPDEL-Delete Groups 33. HISTORY- List last commands (good for tracking) 34. FINGER-Additional information (about user that are logged in. Dangerous Social Engineering) 35. WHOIS-Who is currently logged in(to your system) 36. WHOAMI-Who you are (Currently logged as:root=#, user=$ or......

Words: 341 - Pages: 2

Netw240 Week 2 Lab Report: Linux Commands and Directories

...Name: | | DSI# | | Date | | NETW240 Week 2 Lab Report: Linux Commands and Directories Step 2: File System Navigation 1: Display a long listing of the root ( ⁄) directory. Enter ls -l ⁄ Verify that the output is from the ⁄etc directory and is a long list. What type of files may you find in this directory? Write your answer below. binbootcgroupdevetchomeliblost+foundmediamntoptprocrootsbinselinuxsrvsystmpusrvar | 2: Display a long listing of the ⁄etc directory. Enter ls -l ⁄etc Verify that the output is from the ⁄etc directory and is a long list. What type of files may you find in this directory? Write your answer below. | 3: Display a long listing of the ⁄bin directory. Enter ls -l ⁄bin. Verify that the output is from the ⁄bin directory and is a long list. What type of files may you find in this directory? Write your answer below. | 4: Display a long listing of the ⁄sbin directory. Enter ls -l ⁄sbin. Verify that the output is from the ⁄sbin directory and is a long list. What type of files may you find in this directory? Write your answer below. | 5: Display a long listing of the ⁄dev directory. Enter ls -l ⁄dev. Verify that the output is from the ⁄dev directory and is a long list. What type of files may you find in this directory? Write your answer below. crw--w---- 1 root tty ...

Words: 1575 - Pages: 7

Linux

...University of Sunderland School of Computing and Technology File Management System in Linux CUI Interface A Project Dissertation submitted in partial fulfillment of the Regulations governing the award of the degree of BA in Computer Studies, University of Sunderland 2006 I. Abstract This dissertation details a project to design and produce a prototype Linux character environment file manipulation assisting application. The application is offering a friendly menu driven interface to handle the jobs that non-programmers keep finding cumbersome to master when it comes to working in a Unix/Linux interface, resulting in serious mistakes and much loss of productive time. The Linux File Management System is a basic program for every user at a Unix/Linux terminal. Advantages here include the fact that the support team does not have to be burdened with solving simple file based queries by the employees. The areas of Designing GUI interfaces in Linux and Windows versus Linux Security were researched and a prototype has been designed, developed and tested. An evaluation of the overall success of the project has been conducted and recommendations for future work are also given. Words II. Table of Contents 1) Introduction.................................................................................................................................4 1.1 Overview.................................

Words: 17681 - Pages: 71

Linux

...CSCI 1483 Intro to UNIX/Linux Ch 1-5 Slide Objectives for Midterm exam prep Ch 1 Objectives * Define OSs, including PC and server OSs * Describe the UNIX and Linux operating systems * Explain the purpose of UNIX/Linux shells * Discuss how to select user names and passwords * Connect to UNIX/Linux using Telnet or SSH * Use basic *nix commands & editing features * Explain the role of a system administrator * Change your password for security * Use multiple commands to view the contents of files * Redirect output to a file Ch 2 Objectives * Discuss UNIX/Linux FSs and list several examples * State the standard tree structure * Define partition and list 3 recommended ones for *nix * What are inodes, and what is stored in them? * Describe contents of: /boot, /bin, /dev, /home, /lib, /mnt, /media, /proc, /root, /sbin, /tmp, /usr, and /var * State purpose of the mount and umount commands * State the path (pathnames) to any file, and prompts * List commands to do the following: * Navigate the FS, create and remove directories, copy and delete files, configure file permissions Ch 3 Objectives * Compare ASCII, binary, and executable files * Understand the types of editors * Tell how to enter the 3 modes of the vi editor * Be able to create and edit files using the vi editor * Be able to create and edit files using the Emacs editor * Nothing to submit for these last 2......

Words: 397 - Pages: 2

Linux

...Why is Linux popular? Why is it popular in academia? Because of it portability and it is free as Free Expression easy to manipulate and transport. Because of its portability and easy to manipulate. 3. What are multiuser systems? Why are they successful? Multi-user are the several individual user that can access one system that being physical machine or VM. They are popular because it help to centralize resources and energies and minimize security concerns. 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 (www.fsf.org) is the principal organizational sponsor of the GNU Project. GNU developed many of the tools, including the C compiler, that are part of the NU/Linux Operating System. Linux is the name of an operating system kernel developed by Linus Torvalds and expanded and improved by thousands of people on the Internet. Torvalds’s kernel and GNU’s tools work Together as the GNU/Linux Operating System. 5. In which language is Linux written? What does the language have to do with the success of Linux? Linux was written in C language. C can be used to write machine-independent programs. A programmer who designs a program to be portable can easily move it to any computer that has a C compiler. 6. What is a utility program? A utility (program), sometimes referred to as a command,......

Words: 699 - Pages: 3

Linux Commands

...los paquetes actualmente instaladas apt-get purge realiza una desinstalación completa — se eliminan también los archivos de configuración. apt-get clean vacía completamente el directorio /var/cache/apt/archives/ apt-get autoclean sólo elimina los paquetes que no pueden ser descargados apt-get -t stable upgrade --> indica a apt-get que utilice una distribución específica al buscar paquetes a actualizar apt-get dist-upgrade --> completará la actualización aún si tiene que eliminar algunos paquetes obsoletos o instalar nuevas dependencias. Para actualizaciones más importantes, como el cambio de una versión mayor apt-get autoremove --> se deshará de paquetes automáticos que ya no son necesarios apt-get help Fuente: Linux...

Words: 418 - Pages: 2

Linux

...Course Description This course is a survey of the UNIX® operations. The student will gain an understanding of the internal operations of the UNIX® system, which enables the user to make efficient use of files, file systems, and processes. Commands for efficient management of UNIX® system files, file systems and process, systems administration and security are also examined. Policies Faculty and students/learners will be held responsible for understanding and adhering to all policies contained within the following two documents: • University policies: You must be logged into the student website to view this document. • Instructor policies: This document is posted in the Course Materials forum. University policies are subject to change. Be sure to read the policies at the beginning of each class. Policies may be slightly different depending on the modality in which you attend class. If you have recently changed modalities, read the policies governing your current class modality. Course Materials Blum, R. (2008). Linux® command line and shell scripting bible. Indianapolis, IN: Wiley. Love, P., Merlino, J., Zimmerman, C., Reed, J. C., & Weinstein, P. (2005). Beginning Unix®. Indianapolis, IN: Wiley. Software RedHat Linux 5 (Virtual Desktop) Article References Ahmed, M. F., & Gokhale, S. (2009). Reliable operating systems: Overview and techniques. IETE Technical Review, 26(6), 461–469. Anthes, G. (2009, June 20-July 27). UNIX turns 40.......

Words: 1560 - Pages: 7

Basic Commands in Linux and Windows

...LESSON 2 BASIC COMMANDS IN LINUX AND WINDOWS LESSON 2 – BASIC COMMANDS IN LINUX AND WINDOWS “License for Use” Information The following lessons and workbooks are open and publicly available under the following terms and conditions of ISECOM: All works in the Hacker Highschool project are provided for non-commercial use with elementary school students, junior high school students, and high school students whether in a public institution, private institution, or a part of home-schooling. These materials may not be reproduced for sale in any form. The provision of any class, course, training, or camp with these materials for which a fee is charged is expressly forbidden without a license including college classes, university classes, trade-school classes, summer or computer camps, and similar. To purchase a license, visit the LICENSE section of the Hacker Highschool web page at www.hackerhighschool.org/license. The HHS Project is a learning tool and as with any learning tool, the instruction is the influence of the instructor and not the tool. ISECOM cannot accept responsibility for how any information herein is applied or abused. The HHS Project is an open community effort and if you find value in this project, we do ask you support us through the purchase of a license, a donation, or sponsorship. All works copyright ISECOM, 2004. 2 LESSON 2 – BASIC COMMANDS IN LINUX AND WINDOWS Table of Contents “License for Use” Information....................

Words: 2543 - Pages: 11