Hack Forums
hacking beggining - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4)
+---- Thread: hacking beggining (/showthread.php?tid=6330544)



hacking beggining - concepto - Aug 19, 2026

I’ve just started, and I’m trying to use the cp -r command to copy and paste a directory into another directory. I’ve tried using the command in Linux, but I’m not sure how to do it or whether I need to be in the main directory when I run the command...

I did this (I can't upload pictures yet):

ME:~$ ls
Descargas Escritorio LAMEJOR Musica Publico
Documentos Imagenes LAPEOR Plantilla Videos

ME: cp -r 'LAMEJOR' ~/Documentos

ME: ls
Descargas Escritorio LAMEJOR Musica Publico
Documentos Imagenes LAPEOR Plantilla Videos

ME: cd ~/Documentos

ME: ~/Documentos$ ls
Nueva carpeta LAMEJOR

But when I try it again from the Documentos directory:

~/Documentos$ cp -r 'LAMEJOR' ~/Documentos
cp: cannot stat 'LAMEJOR': No such file or directory

How do you do it?


[quote="concepto" pid='62994572' dateline='1787155504']
I’ve just started, and I’m trying to use the cp -r command to copy and paste a directory into another directory. I’ve tried using the command in Linux, but I’m not sure how to do it or whether I need to be in the main directory when I run the command...

I did this (I can't upload pictures yet):

ME:~$ ls
Descargas Escritorio LAMEJOR Musica Publico
Documentos Imagenes LAPEOR Plantilla Videos

ME: cp -r 'LAMEJOR' ~/Documentos

ME: ls
Descargas Escritorio LAMEJOR Musica Publico
Documentos Imagenes LAPEOR Plantilla Videos

ME: cd ~/Documentos

ME: ~/Documentos$ ls
Nueva carpeta LAMEJOR

But when I try it again from the Documentos directory:

~/Documentos$ cp -r 'LAMEJOR' ~/Documentos
cp: cannot stat 'LAMEJOR': No such file or directory

How do you do it?

But if I’m in the home directory and I type cp -r 'Documentos' ~/Escritorio, then it works. But if I’m in the /Plantillas directory, for example, and I type the command cp -r 'LAMEJOR' ~/Escritorio, it gives me the same error:
cp: cannot stat 'LAMEJOR': No such file or directory


RE: hacking beggining - kommer2016 - Aug 22, 2026

command is

cp -r SOURCE_DIRECTORY DESTINATION

example

cp -r project backup/
cp -r project/ backup/project-copy/
cp -r project/* backup/

Use ChatGPT. It really helps you a lot!