Question: Using Basic Linux Commands.Step Two: Experiment with each of these commands: mkdir rmdir cd is pwd cat head more rm c p who date cal

Using Basic Linux Commands.Step Two: Experiment with each of these commands:
mkdir
rmdir
cd
is
pwd
cat
head
more
rm
cp
who
date
cal
man
Step Four: Create a log file (see script command in lab one) showing how to do each of the following tasks:
1- type the command whoami
2- create a new directory named lab2
3- change directories into lab2
4- list all files, even hidden files (directory should be blank)
5- create a new file that contains the calendar for this month
6- list all files again, even hidden files (there should be just one file)
7- display the entire contents of that new file
8- delete the file
9- ask the system when is easter in 2012
10- ask the system for today's date.
End the log file.
Directories
mkdir xyz make the directory xyz
cd xyz change directory, down into xyz
cd .. go up one directory level
cd ~ go to your home directory
cd ~dannellys2 go to dannelly's home directory
ls list the contents of the current directory
ls -a directory listing, including all hidden files
ls -l directory listing, show permission, edits dates, etc.
ls -al really long directory listing
File Manipulation
cp file1 file2 make a copy of file1 named file2
cat myfile show contents of myfile
more myfile show contents of myfile one screen at a time
head myfile show the top 10 lines of myfile
rm myfile remove myfile (delete it permanently)
rm * remove all files in the current directory
rm -i * interactive removal - ask yes/no for each file
ls > bob redirect directory listing into the file named bob
Misc Commands
who users logged into this machine
date today's date
cal calendar (many options)
man -k calendar list manual pages related to calendar
man cal the manual page for the "cal" command
exit logout of system
logout logout of system
ctrl-d logout of system
ctrl-c kill the running program
 Using Basic Linux Commands.Step Two: Experiment with each of these commands:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!