cd Command and touch Command in Linux (Full Detailed Information)| Linux Tutorials | Parsutech

Publicado em: 29 Setembro 2023
no canal de: Parsu Tech
43
like

Hello Friends ,
Please subscibe my youtube channel and also like my videos.
If you have any type of doubt then please put in the comment section .

cd Command (Change Directory):- The cd command is used to change the current working directory in the command-line interface. You can navigate to different directories by specifying the directory path as an argument.

Syntax: cd [directory].
Examples:
cd /path/to/directory: Change to the specified directory.
cd ..: Move up one directory (to the parent directory).
cd -: Change to your child directory.
cd ~: Change to your home directory.
cd: Change to your home directory (shortened form).

touch Command:- Description: The touch command is used to create empty files or update the access and modification timestamps of existing files. If the file doesn't exist, it will be created with the specified name.

Syntax: touch -options [filename]
Examples:
touch myfile.txt: Create an empty file named "myfile.txt" in the current directory.
touch file1.txt file2.txt: Create multiple empty files at once.
touch -c file.txt: Update the timestamp of an existing file without creating a new one (useful for changing access or modification times).
touch t YYYYMMDDHHMM.SS file.txt: custom time will be given to the cloudfile file.
touch d ‘Sat Apr 10 10:10:10 IST 2022’ file.txt: another way to set custom time.


Nesta página do site você pode assistir ao vídeo on-line cd Command and touch Command in Linux (Full Detailed Information)| Linux Tutorials | Parsutech duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Parsu Tech 29 Setembro 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 43 vezes e gostou like espectadores. Boa visualização!