Documentos de Académico
Documentos de Profesional
Documentos de Cultura
OUTPUT:
1.Date:
[oslab@localhost ~]$date
2.Cal:
[oslab@localhost ~]$ cal
January 2015
Su Mo Tu We Th Fr Sa
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
3.Echo:
[oslab@localhost ~]$ echo GOOD MORNING
GOOD MORNING
4.Who:
[oslab@localhost ~]$ who
5.Who am i:
[oslab@localhost ~]$ who am i
6.TTY:
[oslab@localhost ~]$ tty
/dev/pts/2
7.Man:
[oslab@localhost ~]$ man date
NAME
SYNOPSIS
DESCRIPTION
Display the current time in the given FORMAT, or set the system date.
-d, --date=STRING
-f, --file=DATEFILE
-r, --reference=FILE
-R, --rfc-2822
--rfc-3339=TIMESPEC
sec-
-s, --set=STRING
--version
...skipping...
-f, --file=DATEFILE
-r, --reference=FILE
-R, --rfc-2822
sec-
-s, --set=STRING
--version
2.Cd:
[oslab@localhost ~]$cd int
3.Pwd:
[oslab@localhost ~]$pwd
/home/oslab/int
4.Rmdir:
[oslab@localhost ~]$rmdir int
5.ls:
[oslab@localhost ~]$ls
Fruits
2.cp:
[oslab@localhost ~]$ cp fruits mango
3.Move:
[oslab@localhost ~]$ mv fruits fruit
4.Remove:
[oslab@localhost ~]$ rm fruits
5.Word count:
[oslab@localhost ~]$ wc -c mango
46 mango
1 9 46 mango
6.Sort:
[oslab@localhost ~]$ sort demo
2.Difffer:
3.Filter:
(a) Head:
(b)Tail:
FB
4.Numbering:
[oslab@localhost ~]$ nl mango
Mango
PROGRAM:
read a b c
if [ $a -gt $b -a $a -gt $c ]
then
elif [ $b -gt $c ]
then
else
fi
OUTPUT:
[oslab@localhost ~]$ sh large3n.sh
873
A is big
PROGRAM:
echo Enter two numbers
read a b
read op
case $op in
5) break;;
esac
OUTPUT:
addition=30
subtration=10
multiplication=10
division=8
PROGRAM:
read num
i=1
fact=1
do
i=` expr $i + 1 `
done
OUTPUT:
Enter a number
PROGRAM:
read basic
OUTPUT:
5000
PROGRAM:
read num
sum=0
do
done
OUTPUT:
143
Sum of Digits is 8