dirs command in Linux with examples Last Updated : 15 May, 2019 Comments Improve Suggest changes Like Article Like Report dirs command shell builtin is used to display the list of currently remembered directories. By default, it includes the directory you are currently in. A directory can get into the list via pushd command followed by the dir name and can be removed via popd command. Syntax: dirs [-clpv] [+N] [-N] It is useful for easy and quick flow through the directories on the command line. Suppose you want to go to a directory, you can just use the command pushd dir-name and you will be redirected to that directory. Also, you can simply come back to previous by using command popd Options: c : Clears whole list of remembered directories. l : Do not show the path of your home directory in your path-name of a directory. Example: /home/vivek/Rocket -> ~/Rocket p : Display one entry per line. v : Display one entry per line prefixed with positional index starting with 0. Parameters: +N : Displays Nth entry from left. -N : Displays Nth entry from right. Examples: Basic Functioning: pushd and popd: Using Options: Using Parameters: Comment More infoAdvertise with us Next Article dirs command in Linux with examples V VivekAgrawal3 Follow Improve Article Tags : Linux-Unix Similar Reads cut command in Linux with examples The cut command in linux is a command for cutting out the sections from each line of files and writing the result to standard output. It can be used to cut parts of a line by byte position, character, and field. The cut command slices a line and extracts the text. It is necessary to specify an optio 8 min read cvs command in Linux with Examples In today's digital era, where file modifications and version control are essential, the Concurrent Versions System (CVS) command in Linux emerges as a powerful tool. CVS allows users to store and track the history of files, enabling easy retrieval of previous versions and restoring corrupted files. 6 min read How to Display and Set Date and Time in Linux | date Command Unlock the full potential of the date command in Linuxâa versatile tool that does more than just show the current date and time. With this command, you can set your systemâs clock, synchronize time across networks, and even calculate past or future dates for tasks like scheduling or logging. In this 8 min read dc command in Linux with examples The dc command is a versatile calculator found in Linux systems, operating using reverse Polish notation (RPN). This command allows users to perform arithmetic calculations and manipulate a stack, making it ideal for complex mathematical tasks directly from the command line.SyntaxThe basic syntax fo 3 min read 'dd' Command in Linux: Explained The dd command in Linux is a powerful utility for low-level data copying and conversion, primarily used for disk cloning, creating disk images, partition backups, and writing ISO files to USB drives. Mastering the dd command is essential for Linux system administrators, as it enables precise control 6 min read declare command in Linux with Examples The built-in is a powerful built-in feature of the Bash shell. It allows users to declare and set attributes for variables and functions, enabling better control over their behavior. By understanding how to use declare, you can manage variables and functions more effectively in your shell scripts. T 2 min read depmod command in Linux with examples depmod(Dependency Modules) command is used to generate a list of dependency description of kernel modules and its associated map files. This analyzes the kernel modules in the directory /lib/modules/kernel-release and creates a "Makefile"-like dependency file named modules.dep based on the symbols p 7 min read df Command in Linux with Examples There might come a situation while using Linux when you want to know the amount of space consumed by a particular file system on your LINUX system or how much space is available on a particular file system. LINUX being command friendly provides a command line utility for this i.e. 'df' command that 9 min read How to Compare Files Line by Line in Linux | diff Command In the world of Linux, managing and comparing files is a common task for system administrators and developers alike. The ability to compare files line by line is crucial for identifying differences, debugging code, and ensuring the integrity of data. One powerful tool that facilitates this process i 9 min read diff3 command in Linux with examples diff3 command is used to compare the three files line by line. It internally uses the diff command to compare. When three files are compared then the following output may come which have their own meaning: ==== : It means all the files are different. ====1 : File 1 is different. ====2 : File 2 is di 3 min read Like