Linux Lab 02 Command Line

  • December 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Linux Lab 02 Command Line as PDF for free.

More details

  • Words: 335
  • Pages: 1
Linux Workshop

Lab 2 Command line Requirements

Quick Reference Objectives to learn

➢ Live Linux

Command line knowledge #program files do not need an extension such as .exe #directories use / instead of \

#(often no drive letters, but) mount points.

#commands & filenames are case sensitive #help with: cmd --help #prefix ./ to start a program located in the current directory #.files are hidden (starting with a dot) command -options parameters

#General command syntax

...

#Automatic cmd completion (WinXP)

...

#Completion for cmd & file choices

...<page up>

#Browse through cmd history (

history

#Show personal cmd line history

1. Go to the tmp directory

!5

#Start command 5 from history

2. How many commands can a user execute?

cmd1 ; cmd2

#Use ; for cmd concatenation

To Do from the command line

bash)

#man, info, which, type, whereis, apropos

3. How many commands can a priviliged user execute? 4. How many commands did the user already execute in the past? 5. Execute command number 1 from the command history 6. How can you search in a directory to a filename ignoring upper and lower case characters? 7. Change the prompt. Change \w in \W or reverse.

ls /etc ¦ less

#less is more

ls /etc ¦ grep -i fstab

#Filter output using grep ignoring upper case

( to quit)

nohup cmd

#Leave cmd running aft logout (hang up) #such as the screen package

cmd &

#Start cmd in background (running)



#Set program into background (stopped)

jobs

#Show background programs

bg [nr]

#Start background program (running)

xset -b

#Set sound bell for alerts = off (in X)

echo $PS

#Show prompt string variable

export PS=

#Set prompt string variable

Theory Modules LPIC 1 Certification Bible, isbn 0-7645-4772-0 ➢ p. 63 Ch. 2 Using the Shell ➢ p. 275 Ch. 7 Using Documentation ➢ p. 72-77 Environment Variables and Settings ➢ p. 527-540 Customizing the Shell Environment

Extra References ➢ www.tldp.org ➢ www.vmware.com

© October 2, 2005, wiki.novell.com/index.php/Roberts_Quick_References, author of Foundations of Linux networking

Related Documents

Linux Lab 02 Command Line
December 2019 14
Command Line
June 2020 8
Linux Command
November 2019 22
Xp Command Line
December 2019 29
Geo Precessing Command Line
November 2019 22