Command-lineOperations Solutions

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Linux Foundation

Command Line Operations - Solutions

Lab 1: Installing Software

$ apt-get install terminator


$ yum install terminator
$ zypper install terminator
------------------------------------------------------------------

Lab 2: Removing Software


$ apt-get remove terminator
$ yum remove terminator
$ zypper remove terminator
------------------------------------------------------------------

Lab 3: Finding Directories and Creating Symbolic


Link s
$ find / -type d -name init.d
$ cd ~
$ ln -s /etc/init.d .
------------------------------------------------------------------

Lab 4: Creating, Moving, and Removing Files


$ touch exercise.txt
$ mv exercise.txt ../../tmp/

Introduction to Linux Page 1 of 2


$ rm /tmp/exercise.txt
------------------------------------------------------------------

Lab 5: Locating Applications


$ which apt-get
or
$ which yum
or
$ which zypper
------------------------------------------------------------------

Introduction to Linux Page 2 of 2

You might also like