Professional Documents
Culture Documents
• AB
• aB Four different strings in Linux
From windows to Linux • aB One string in Windows
• ab
..........................................................
HW
shell
1
• myfile.txt can be and excitable file in Linux • GUI is optional, it you use Linux as
server...
Create a file……
A binary file
• A binary file is a file whose content must be interpreted • A file stored in binary format. A binary file
by a program or a hardware processor that understands
in advance exactly how it is formatted. That is, the file is is computer -readable but not human-
not in any externally identifiable format so that any readable. All executable programs are
program that wanted to could look for certain data at a stored in binary files, as are most numeric
certain place within the file. A program (or hardware
processor) has to know exactly how the data inside the data files. In contrast, text files are stored
file is laid out to make use of the file. in a form (usually ASCII) that is human-
readable.
2
Device file…. How to use Linux commands.
• i) Locate in /dev directory
cd /dev • Linux programs or command has many
ls options or arguments. Which can be
supplied at command prompt to get
ls hd*
various tasks done.
…..
• Theses options/ arguments sometimes get
……. implicitly ( as a default)
…….
……
• Ex • 1. using argument.
• Useradd –d /home/debian –s /bin/bash debian • cd /usr
Argument
cmd
Single letter options are supplied with an arguments are
separated bye one more space. More than one letter
options are supplied with each options and argument
are separated at least one space.
using options
implicit argument
• cd ls –a
• pwd path cd $HOME environment variable for users home dir
when you type some commands alone if it has no ls –a –l => ls –al
defult argument option it will provide basic
syntax help or prompt user to view help ‘
netstat –tnlp = > netstat –t –n –l –p
mv --help =/ mv –h –e –l –p