Basic commands used in CentOS/Rhel/Fedora

Publicado em: 25 Outubro 2018
no 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


Nesta página do site você pode assistir ao vídeo on-line Basic commands used in CentOS/Rhel/Fedora duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário linux learnings 25 Outubro 2018, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 75 vezes e gostou 7 espectadores. Boa visualização!