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

Publié le: 29 septembre 2023
sur la chaîne: 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.


Sur cette page du site, vous pouvez voir la vidéo en ligne cd Command and touch Command in Linux (Full Detailed Information)| Linux Tutorials | Parsutech durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Parsu Tech 29 septembre 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 43 fois et il a aimé like téléspectateurs. Bon visionnage!