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

Опубликовано: 29 Сентябрь 2023
на канале: 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.


На этой странице сайта вы можете посмотреть видео онлайн cd Command and touch Command in Linux (Full Detailed Information)| Linux Tutorials | Parsutech длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Parsu Tech 29 Сентябрь 2023, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 43 раз и оно понравилось like зрителям. Приятного просмотра!