Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Login

Register Now

Welcome to All Test Answers

shell commands

Lab #1 – Shell Commands
Part I.
Understand and practice the following shell commands. Check the man pages if needed.
To obtain the mark for this lab, you must correctly answer some randomly selected
questions regarding these commands.
echo $SHELL
echo $PATH
uname
whoami
which pico
pwd
cat /etc/profile
wc -l /etc/passwd
ls
ls -l
ls –l /tmp
ls –l /
cd ~
cd /tmp
mkdir 256
cd 256
mkdir lab1
cd lab1
history
history > apple.txt
nedit apple.txt
touch kiwi
chmod 755 kiwi
rm kiwi
Part II.
Type and run a shell script to be given during the lab section. You are encouraged to use
nedit, pico, or vim for file editing.

shell commands

About

Leave a reply

Captcha Click on image to update the captcha .

error: Content is protected !!