Please enable JavaScript.
Coggle requires JavaScript to display documents.
linux basic 2 - create files and directories - Coggle Diagram
linux basic 2 - create files and directories
ls -l
- list file and directorys with propreties
ls -ltr
list files and directorys on last modify
vi
:warning:
crea file - vi homer, after that shift+: wq!
cp
to copie, but creat files and directoryes with cp
to copy directoryes
cp -R
R - for recursive - cp <source_folder> <destination_folder>
so a recursive also indicates the command that you are copying a directory plus it's telling it copy
the subfolder in that directory and the sub files or the files within that subfolders. :check:
find files or dirctorys
find
find . -name "filename"
locate
locate filename
So in simple words, the difference between
locate
and
find
command is locate command has a database :check:
to update database run
updatedb
as root
using
wildcards
*
rm filenam*
?
ls -l ?bcd*
show all abcd files These are the matching files because whatever the first character is, whether it's a or not, I don't
{}
multiples files same time {1 ..9}
touche filename{1..9} to create 9 files
[ ]
ls -l asterico[cd]asterisco
mostra todos os arquivos com cd
You could use it that any of the commands you we have, you could use it with all the commands we have :check:
Go online, Google it and try wildcard wildheart examples.
Try them.
soft and hardlinks (ln)
ln
create a link
hardlink :check:
ln -s
to crate a softlink
ls -li
show inodes created
ls -ltri
show inode on date modified
helps commqndes
whatis
-- help
man