Please enable JavaScript.
Coggle requires JavaScript to display documents.
Linux lec 7 - Coggle Diagram
Linux lec 7
mkdir
(make
directory)
mkdir dir1/dir2/dir3
mkdir /home
(first slash is
always root)
mkdir dir1 dir2 dir3
(multiple directories)
For removing
directory
remove parent
and child directory
rmdir -p dir1/dir2
remove empty
directory
rmdir dir
remove directory and
all sub-directories
rmdir -pv dir
file+dir
removes empty thing
rm -r dir || file
removes parent
and childs
rm -rp dir || file
removes forcefully
rm -rf dir || file
head || tail || less
[cmd] file
show first 10 lines
show last 10 lines
show first page
Press q to quit
cd
change directory
. for current
.. for parent
pwd
Print working directory
hide file
or directory
Put
'.'
in the
starting of name
copy
cp file1 file2
move
[cmd] [to move] [loc]
mv file1 dir
mv dir1 dir2
mv file1 file2
(rename)