![]() Now the mkdir command can be used to create new directories on the file system. The pwd command stands for p rint w orking d irectory, and as the name suggests, it is used to print out the absolute path to the current directory. To include such files in the output of ls, you’ll have to provide the -a flag: $ ls -l 4 root root 7896 Jul 16 22:55 VideosĪpart from normal files or directories, the ls command can be used to show the hidden files too. 2 root root 123 Jun 31 23:48 index.htmlĭrwxr-xr-x. 1 root root 6797 Aug 31 11:17 Downloadsĭrwxr-xr-x. The -l option can be used to show the size, last modified date-time as well as directory/file ownership and permissions. $ lsĭesktop Downloads Templates index.html Videos The ls command is used to list files and directories under a specific path, or the current working directory whenever a path is not provided. So, if the current working directory is /home/username/dir_a/subdir_a, a cd. ![]() In other words, cd is equivalent to cd ~. ![]() ![]() When cd is executed without a directory, it puts the user in their home directory. The cd command is used to c hange the current working d irectory (which is why it’s called cd) and navigate across the file directory of the host machine. More From Giorgos Myrianthous: 16 Bash Commands Data Scientists Must Know ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |