of
lab 2 Basic commands
file extension is not important only if I want to use
C or java here we have to use it
A way to know commands usege
man Is OR Is help
To list all existed commands bin
Is bin
What kind file is
file name 3file
based the
on
file bash history
content
If thefile is empty file typeempty
English textfile ASCI type
folder folder
exutiable file exutiable file
directry ex file videos directry
of
create empty file
touch file name no need for extentiononly
if I need it
view file contant without editing
leet file name
Another command to display file page by page
bcuz it's long
up Cb1
down space bar
move feet file name linebyline center
ls list folders can't list files
folders I file not
methepTagain folder
soit'llgive
w fileordirectory what permissions is itlinked
goth
files
who isthegroupandtheowner size creation
what is thetype ifends andgreenthenexatiable
readytobe excited
of
To show last time system has been booted
who b
take part of the date eair
9
date 2 mmene.gg
7 90
24
Create 3 files
touch files c files java files py
view file content
eat filet.c
file files 8
view all typed commands
more bash history
view files starts with F
Is f
one or morecharecter
of
list all files with 5 char and any extention
Is
exertion
List files start with anything but end with
1 to 2 with any extention
sifif.to Iansexteniion
List files start with anything but notendwith
1 to 2 with any extention
Is
an extention
list start with f but not end withdigit upper lowerease
Is f 1 a 2 A 2 0 9
list files start with f andends with 23
Is 8 23
ends with 23
range 1 to 3
END
of
list files with details starts with F ends with e with
any extention
Is l e
How to create a directry 3 directries
mk dir dirt dive dir's
How to make a directry inside another directry
while i'm at my home
mkdin dirt dirk dir2 dire dir dir33
How to know they are created
use tree tree
Another way
ls R
currentdirectry
aboveit
one
of
How to create files inside dirt diral
at home
changelocation
locationchanged
details
create files location now
isdirt dirt
listfilesat dinn
only forroot
delete a directry folder have to be empty
Should be empty
error
deleted succeffly
seeds a
day
FII
of
copy all files in Java in dir 22
on diva dir 22
cp java
Ask if there's two duplicate files while copying
Cp i java to dir dir22
rename a file
5
mV E.tk javy
all
starts gl h ftodir33
move
fi
mvf dir3 dir33
move a file to Desktop
mu First java Desktop
remove a file
um Desktop First java
of
check if we have a c compiler
cc
Sudo apt install gcc
update the system
sudo apt update
to check if java is installed
java version
to install java
Sudo apt install default jre
There are steps to download vs editor