Basic commands used in CentOS/Rhel/Fedora

Publicado el: 25 octubre 2018
en el canal de: linux learnings
75
7

Basic Commands.......
#ls (List the contents of any directory)
#ls -l (Long listing - detailed report of available files)
#ls -la (Long listing including hidden files)
#pwd (Shows your present working directory)
#cd .. (change directory - moves you to one level up)
#cd /var/tmp (change directory to the specified path)
#cd (Bring back to your home directory)
Ctrl + L (Clear Screen)
Shift + Pg up Key (scroll your screen upwards)
Shift + Pg down Key (Scroll your screen downwards)
#cd - (Switches u between your current & previous directory)
#touch file1 (creates an empty file)
#mkdir dir1 (Creates new directory)
#cd dir1 (change directory to dir1)
#pwd
#cat (a closing angle bracket) file2 (Create new file with data)
Enter the data and press control + d to save the contents
#cat file2 (check the data inside the given file)
#cat ( 2 Closing angle brackets) file2 (Appends the new data in previously created file)
Enter the data, press enter and ctrl + d
#cat file2

How to Copy file and Dir...
#cp file2 file3 (make a copy of file2 with new name file3 including the contents of file)
#cp file2 /tmp (make a copy of file2 in /tmp directory)
#cp file2 /tmp/backup_file2 (make a copy of file2 in /tmp directory with new name)
#cp -r dir1 dir2 (-r switch is used to copy a directory)
#cp -r dir1 /tmp/backup_dir1 (copy directory & rename)

How to move and rename file......
#mv dir1 /var/tmp/ (Moves the dir1 to specified path)
#mv file1 /tmp/backup_file1 (Move and rename)
#mv old_name new_name (same mv command is used for renaming)

Thanks for watchhng this video..Do LIKE SHARE and SUBSCRIBE for more videos on linux...
THANKYOU


En esta página del sitio puede ver el video en línea Basic commands used in CentOS/Rhel/Fedora de Duración hora minuto segunda en buena calidad , que subió el usuario linux learnings 25 octubre 2018, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 75 veces y le gustó 7 a los espectadores. Disfruta viendo!