RTOS7
RTOS7
PROGRAMMING IN
LINUX
OVERVIEW
It became popular in
commercialized in 1981
1970s
and
was
OVERVIEW
FEATURES OF LINUX
/bin
/usr/bin
/etc
/dev
/usr/spool/mail
/usr
cshell(csh)
X Windows provides Graphical User Interface
P.V.K.Chaitanya, E.C.E, GVPCEW
FEATURES OF LINUX
is
To display a banner
cal
date
sleep
who am i
who
clear
passwd
echo
To echo a string
P.V.K.Chaitanya, E.C.E, GVPCEW
ls l
ls a
cat
cp
rm
To delete a file
rm i
mv
To rename a file
head
tail
spell
wc
wc w
wc l
wc c
nl
DIRECTORY COMMANDS
pwd
cd
mkdir
rmdir
find
du
df
$wc <filename
hello.c | more
$more
hello.c
sorting utility
pattern matching utility
translation utility
P.V.K.Chaitanya, E.C.E, GVPCEW
$ ls | sort
$ ls | sort r
$ sort n filename
Displays all the lines in a file which contains the string how
Converts all upper case letters to lower case and produces file2.
Repalces each space in temp with a new line and will keep it in a file
temp0.
P.V.K.Chaitanya, E.C.E, GVPCEW
$who | wc l
$who | sort
$<etc/passwd | wc l
FILE PROTECTIONS
Each file will be owned by a user. The owner can assign read,
write and execute permissions to his file, to the group
members or to others.
The command $ls l displays the first field in each line in the
format drwxrwxrwx.
PROCESS COMMANDS
$ ps ef
Gives
PROCESS COMMANDS
$ kill -9 <pid>
To terminate
$ time <command>
To find
a running process
SHELL