Play Video

How to Use File Manager in cPanel – HostGator Tutorial

File Manager is the cPanel tool that is exactly as it’s name sounds. File Manager manages files! It is a tool inside of cPanel that allows you to customize many aspects of your website, your email, your photos, videos, and more.

In this video, Josh will take you through all of the File Manager basics, as well as a couple of nifty tips and tricks to make managing your website a piece of cake.

In this video you will learn:

00:00 – Introduction
00:18 – Locating File Manager
00:26 – Understanding your cPanel File Structure
00:55 – Navigating File Manager
01:25 – What different Folders Do
01:50 – OOPS I Deleted Something… Now what?
02:30 – Dot Files (Showing Hidden Files)
03:05 – .trash Folder and Restoring Files
03:40 – Creating Files and Folders
04:30 – Editing Files
04:57 – Viewing Files
05:11 – Downloading/Uploading Files
06:20 – Creating a New Folder
06:45 – Making a Backup of a File

Check out our Knowledgebase for more File Manager tips and tricks:

Getting Started with File Manager: http://gtr.bz/7LtZ30roRdt

Navigating File Manager: http://gtr.bz/AZpW30roRcJ

Uploading a File with File Manager: http://gtr.bz/Oy0Z30roRcR

Creating/Deleting Files with File Manager: http://gtr.bz/Dp7930roRd3

For tips, tricks, memes, and more, check out our Social Media Channels:
Facebook: facebook.com/HostGator
Twitter: twitter.com/HostGator
Instagram: instagram.com/hostgator
Linkedin: linkedin.com/company/hostgator-com/mycompany/
YouTube: youtube.com/c/hostgatorUS

Check out our Hosted Series with Scott for some Website tips and tricks:
https://www.youtube.com/playlist?list=PLl8gcdjf_J_kYsU_a2zwqBsuKjERahPtQ

For more from Josh, watch our Helpful How-To series:
https://www.youtube.com/watch?v=GGu-V-cPGW4&list=PLl8gcdjf_J_mU2QfNYTeNJ-ozCZ-lEM-J

For amazing articles covering everything website A-Z, go check out our blog:
http://gtr.bz/VndJ30rjy8a

Join our Website Owners Community on Facebook:
http://gtr.bz/vYJZ30qIcfg

hey everyone it is josh here with hostgator today i’m going to show you cpanel’s file manager one of the easiest ways to manage your content inside your server it’s extremely useful really easy to use and i’m excited to show it to you today let’s get started the first thing we’re going to do is start out here inside of our cpanel i’m going to hover over the file manager icon and click there now before we get started on all the fun stuff you
can do inside of file manager i want to show you where you actually are so if you look over here on the left hand side you can see that we are in home 2 b pit this is my cpanel’s home directory it’s where all of my content inside of my server is stored and every time you open up file manager this is exactly where it’s going to take you on the left hand side over here you can see that we have a lot of folders that we can navigate through if you’re
used to file explorer inside your windows desktop or if you’ve ever used an ftp client this will seem really familiar it’s a quick way to navigate around your system just by clicking on a simple folder so let’s say that i want to navigate to one of the folders that i have here this first one is backups if i just click there you can see in the middle it takes me directly to that folder you can also look and see what’s inside of every folder by
clicking the plus sign here click in the minus to close it back up but that’s a really fast way to navigate back and forth to different folders inside of your server if i click on the home up here it’s going to take me right back to my home directory now there’s a lot of stuff inside of your cpanels file manager and i’ll show you a few of those key folders right now if we look here we can see etsy and mail those are two directories that work
specifically to handle my incoming and outgoing mail inside of the server the public html folder here is where all the content is stored for your primary domain and you’ll see different folders for each of the add-on domains or sub-domains that you have inside of your system as well and there’s going to be a lot of content in here and it’s always good to not delete things but i do want to show you one of the coolest things about file manager if
you accidentally delete something let’s say that i accidentally remove my public html i’ll show you how to delete files and folders really quickly here so let’s say i click over public html and then i click delete you’re always going to be prompted by file manager to ask if you’re absolutely sure that you want to delete the files it’s going to give you the option to skip the trash can and permanently delete it and i’ll show you why i never click
that button let’s click confirm to delete my entire public html and now it’s completely gone all the content from my primary domain has effectively been deleted but i want to show you one of the best parts about file manager is the trashcan now before we actually get to the trashcan i want to talk to you a little bit about dot files or hidden files inside the system a dot file is essentially hidden inside of linux by prefacing the entire name of
the folder or file with a dot in front of it by default these are hidden inside of file manager as well but i’m going to show you how you can see them let’s go up here to the right hand corner click on settings and we’ll click on show hidden files dot files once we click save we can see a lot of files and folders appear with dots in front of them so we’ve got our dot security here here’s my dot trash that i’ll show you about in just a few seconds
if we scroll down we can see a lot of files as well we’ve got our dot ht access which is one of the most important files in terms of apache but let’s scroll back up and let’s look inside the dot trash folder there’s that public html that i deleted earlier if i want to restore it it’s really simple all we do is click the folder click up here on restore click yes when prompted to restore the files and now my public html is back exactly where i left
it before i deleted it so let’s go back to our home directory as we can see here my public html is back and everything is still intact this is one of the easiest ways to restore content and that’s why i always recommend people not choosing the selection for permanently delete the files because you never know when you might need something now that you know how to restore let me show you how to create files and folders inside of your server we
notice the top bars up here we have a lot of options for file manager the first thing i want to show you is how to create a new file or a new folder let’s click the plus sign next to file and now it’s going to ask us what name we want to call the new file i’m going to call this one test.html as you can see it’s going to be created in your current directory if you’d like to specify a different directory you can type it out here but let’s go ahead
and click create new file now as we can see i’ve got test.html down here now let me show you how we can edit this file if we want to let’s click on it and as you can see a bunch of options highlight up here in the top navigation bar now what we can do is we can rename the file if we want to or we can edit this file you can also view the file change the permissions and if it’s an html file you can use the html editor here as well you can also
compress it if it’s a large file or a bunch of folders and files you can compress it into a zip file let me show you how to edit this file real quick let’s click on edit it’s always going to prompt you to backup the original file before making any changes but since it’s a brand new file we can go ahead and click edit and this takes you to inside of the file so now if we wanted to we could start typing out all of our content here i’m just going to
put high click on save changes green success bar means we are good and we can click close now i’ve got content inside of that file i can right click it too to get the same exact options and let’s click on view as you can see there’s the content that i put inside of that file we can click this little tiny x to get out of it let’s right-click again and i’ll show you some more of those options these are very similar to the ones that you’ll see up in
this top bar now let’s say i want to take this file and download it directly to my workstation if i wanted to do that all i do is click on download and in just a few moments download dialog box pops up at the bottom and that’s downloaded directly to my downloads folder on my desktop pretty simple stuff now let’s say that i’ve got a file that’s on my workstation that i want to upload to my server we can click on the upload section here and this
takes me directly to the file upload page i can start dragging and dropping files here if i want to or i can start selecting the files from my desktop right away by clicking the select file button here once i click that it’s going to take me to my workstation in a file explorer i can choose the files that i want to upload click open the green success bar means it’s been uploaded successfully and i can click here to go back to my file manager now
it’s important to note that there’s a 500 mb limit for uploads directly through file manager so if you have a lot of content it’s always a good idea to use ftp and we’ve got a bunch of great videos online about how to do that as well so let’s click go back now as we can see i’ve got my site.html which is the file that i just uploaded and i’ve got test.html which is the file that i created earlier it works very much in the same way if i want to
create a new folder we click on the plus sign here just call it new folder and click create now i’ve got the folder that i created the file that i created and also the file that i uploaded directly to my file manager all these things can be done inside the system and it’s really easy to do the next thing i want to do is show you how to make a copy or a backup of a file let’s say that i want to make a backup of my site.html before i make any
changes what we can do here is click on the file click on copy and that’s all it’s going to do is ask you to choose the location and the name of where you’d like to save this file so i’ll do a forward slash here on public html i’m going to call it mysite.html backup once i’ve got that full path listed out i’ll go ahead and click copy files as you can see i’ve got my site.html and mysite.html.backup really easy way to take a backup of a file just
in case something happens and that’s basically it for file manager i hope you found this helpful if you have any questions or comments please leave them below and subscribe if you want to see more thanks y’all you

Hola a todos. Soy Josh aquí con HostGator. Hoy les voy a mostrar el Administrador de Archivos de cPanel, una de las formas más fáciles de administrar su contenido dentro de su servidor. Es extremadamente útil, realmente fácil de usar, y estoy emocionado de mostrárselos hoy. Comencemos. Lo primero que vamos a hacer es empezar aquí dentro de nuestro cPanel. Voy a pasar el cursor sobre el icono del Administrador de Archivos
y hacer clic allí. Ahora, antes de que empecemos con todas las cosas divertidas que pueden hacer dentro del Administrador de Archivos, quiero mostrarles dónde están realmente. Si miran aquí a la izquierda, pueden ver que estamos en home2/bpitt. Este es el directorio principal de mi cPanel. Es el lugar donde se almacena todo mi contenido dentro de mi servidor. Cada vez que abran el Administrador de Archivos, aquí es exactamente
dónde los llevará. En el lado izquierdo por aquí, pueden ver que tenemos un montón de carpetas por las que podemos navegar. Si están acostumbrados al Explorador de Archivos dentro de su escritorio de Windows o si alguna vez han usado un cliente FTP, esto les parecerá muy familiar. Es una forma rápida de navegar por su sistema con sólo hacer clic en una simple carpeta. Digamos que quiero navegar a una de las carpetas que tengo
aquí. Esta primera es de copias de seguridad. Si hago clic allí, pueden ver en el medio, me lleva directamente a esa carpeta. También pueden mirar y ver lo que hay dentro de cada carpeta haciendo clic en el signo más aquí, haciendo clic en el menos para cerrar la copia de seguridad. Es una forma muy rápida de navegar a través de las diferentes carpetas dentro de su servidor. Si hago clic en el inicio aquí arriba, me llevará
de vuelta a mi directorio principal. Hay un montón de cosas dentro del Administrador de Archivos de su cPanel, y les mostraré algunas de esas carpetas clave ahora mismo. Si miramos aquí, podemos ver etc. y el correo. Estos son dos directorios que trabajan específicamente para manejar mi correo entrante y saliente dentro del servidor. La carpeta public_html de aquí es donde se almacena todo el contenido para su dominio principal,
y verán diferentes carpetas para cada uno de los dominios o subdominios adicionales que tienen dentro de su sistema también. Va a haber mucho contenido aquí. Siempre es bueno no borrar cosas, pero quiero mostrarles una de las mejores cosas del Administrador de Archivos si borran algo accidentalmente. Digamos que accidentalmente removí mi public_html. Les mostraré cómo borrar archivos y carpetas muy rápidamente aquí. Digamos
que hago clic en public_html y luego en Eliminar. Un administrador de archivos siempre les preguntará si están absolutamente seguros que desean eliminar los archivos. Le dará la opción de saltarse la papelera y eliminarla permanentemente. Les mostraré por qué nunca hago clic en ese botón. Hagamos clic en Confirmar para eliminar todo mi public_html. Ahora ha desaparecido completamente. Todo el contenido de mi dominio principal
ha sido efectivamente eliminado, pero quiero mostrarles una de las mejores partes del Administrador de Archivos que es la papelera. Antes de llegar a la papelera, quiero hablarles un poco sobre los dotfiles o archivos ocultos dentro del sistema. Un dotfile está esencialmente oculto dentro de Linux por el prefijo del nombre completo de la carpeta o archivo con un punto delante de él. Por defecto, estos están ocultos dentro del
Administrador de Archivos también, pero voy a mostrarles cómo pueden verlos. Subamos aquí a la esquina derecha, hagamos clic en Configuración, y haremos clic en Mostrar archivos ocultos (dotfiles). Una vez que hagamos clic en Guardar, podremos ver muchos archivos y carpetas que aparecen con puntos delante de ellos. Tenemos nuestro .security aquí. Aquí está mi .trash que les mostraré en unos segundos. Si nos desplazamos hacia
abajo, podemos ver muchos archivos también. Tenemos nuestro .htaccess, que es uno de los archivos más importantes en términos de Apache. Volvamos a subir y miremos dentro de la carpeta .trash. Está ese public_html que borré antes. Si quiero restaurarlo, es muy sencillo. Todo lo que hacemos es hacer click en la carpeta, click aquí arriba en Restaurar. Hagan clic en Sí cuando les pide que restauren los archivos. Ahora mi
public_html está de nuevo exactamente donde lo dejé antes de borrarlo. Volvamos a nuestro directorio principal. Como podemos ver aquí, mi public_html ha vuelto y todo sigue intacto. Esta es una de las formas más fáciles de restaurar el contenido. Por eso siempre recomiendo a la gente que no seleccione para borrar permanentemente los archivos porque nunca se sabe cuándo se puede necesitar algo. Ahora que saben cómo restaurar,
déjenme mostrarles cómo crear archivos y carpetas dentro de su servidor. Si nos fijamos en las barras superiores de aquí, tenemos un montón de opciones para el Administrador de Archivos. Lo primero que quiero mostrarles es cómo crear un nuevo archivo o una nueva carpeta. Hagamos clic en el signo más junto al Archivo. Ahora nos preguntará qué nombre queremos darle al nuevo archivo. Voy a llamarlo test.html. Como pueden ver,
va a ser creado en su directorio actual. Si desean especificar un directorio diferente, pueden escribirlo aquí, pero sigamos adelante y hagamos clic en Crear un nuevo archivo. Como podemos ver, tengo test.html aquí abajo. Ahora, déjenme mostrarles cómo podemos editar este archivo si queremos. Hagamos clic en él. Como pueden ver, un montón de opciones se destacan aquí en la barra de navegación superior. Ahora lo que podemos
hacer es renombrar el archivo si queremos, o podemos editar este archivo. También pueden ver el archivo, cambiar los permisos, y si es un archivo HTML, pueden usar el Editor HTML aquí también. También pueden comprimirlo si es un archivo grande o un montón de carpetas y archivos, pueden comprimirlo en un archivo zip. Déjenme mostrarles cómo editar este archivo rápidamente. Hagamos clic en Editar. Siempre les pedirá que hagan
una copia de seguridad del archivo original antes de hacer cualquier cambio, pero como es un archivo nuevo, podemos seguir adelante y hacer clic en Editar. Esto los lleva al interior del archivo. Ahora, si quisiéramos, podemos empezar a escribir todo nuestro contenido aquí. Voy a poner Hola, clic en Guardar cambios. La barra verde de éxito significa que estamos bien y podemos hacer clic en Cerrar. Ahora tengo contenido dentro de
ese archivo, puedo hacer clic con el botón derecho del ratón también para obtener las mismas opciones exactas, y vamos a hacer clic en ver. Como pueden ver, está el contenido que puse dentro de ese archivo. Podemos hacer clic en esta pequeña X para salir de él. Hagamos clic con el botón derecho otra vez y les mostraré más de esas opciones. Estas son muy similares a las que verán en esta barra superior. Digamos que quiero
tomar este archivo y descargarlo directamente a mi estación de trabajo. Si quisiera hacer eso, todo lo que hago es hacer clic en Descargar y en un momento, aparece un cuadro de diálogo de descarga en la parte inferior, y eso se descarga directamente a la carpeta Mis descargas en mi escritorio. Es muy sencillo. Digamos que tengo un archivo en mi estación de trabajo que quiero subir a mi servidor. Podemos hacer clic en la sección
de cargar aquí y esto me lleva directamente a la página de carga de archivos. Puedo empezar a arrastrar y soltar archivos aquí si quiero, o puedo empezar seleccionando los archivos de mi escritorio de inmediato haciendo clic en el botón Seleccionar Archivo aquí. Una vez que haga clic en eso, me llevará a mi estación de trabajo en un Explorador de Archivos. Puedo elegir los archivos que quiero subir, haga clic en Abrir. La
barra verde de éxito significa que se ha subido con éxito y puedo hacer clic aquí para volver a mi administrador de archivos. Ahora, es importante tener en cuenta que hay un límite de 500 MB para las subidas directamente a través del Administrador de Archivos. Si tienen mucho contenido, siempre es una buena idea usar el FTP, y tenemos un montón de vídeos estupendos en línea sobre cómo hacerlo también. Hagamos clic en Volver.
Ahora, como podemos ver, tengo mysite.html que es el archivo que acabo de subir y tengo test.html que es el archivo que creé anteriormente. Funciona de la misma manera. Si quiero crear una nueva carpeta, hacemos clic en el signo más aquí. Sólo llámenlo “Nueva Carpeta” y hagan clic en Crear. Ahora tengo la carpeta que creé, el archivo que creé, y también, el archivo que subí directamente a mi Administrador de Archivos.
Todas estas cosas se pueden hacer dentro del sistema y es realmente fácil de hacer. Lo siguiente que quiero hacer es mostrarles cómo hacer una copia o una copia de seguridad de un archivo. Digamos que quiero hacer una copia de seguridad de mysite.html antes de hacer cualquier cambio. Lo que podemos hacer aquí es hacer clic en el archivo, hacer clic en copiar, y todo lo que va a hacer es pedirles que elijan la ubicación y el nombre
de donde les gustaría guardar este archivo. Haré una barra aquí en el html público. Lo llamaré mi sitio. html.backup. Una vez que tenga la ruta completa listada, seguiré adelante y haré clic en Copiar Archivos. Como pueden ver, tengo mysite.html y mysite.html.backup. Una forma muy fácil de hacer una copia de seguridad de un archivo en caso de que algo suceda. Eso es básicamente todo para el Administrador de Archivos. Espero
que esto les haya sido útil. Si tienen alguna pregunta o comentario, por favor déjenlo abajo y suscríbanse si quieren ver más. Gracias a todos. [música]