Linux For Dummies
Book image
Explore Book Buy On Amazon

This list provides some simple command line examples. To open a terminal emulator window, click the Gnome Applications menu and select Accessories → Terminal, then, use these commands:

  • clear Clears the current screen of all text.

  • ls Lists the current directory.

    It's like the MS-DOS dir command.

  • ls dir Lists the specified directory.

  • cat file Concatenates (adds) the contents of the file to your screen.

    It's like the MS-DOS type command.

  • more file Displays the file one page at a time.

  • tail file Displays the file one page at a time from the end of the file.

  • pwd Shows name of the current directory.

  • cd dir Changes to the specified directory.

    It's like the MS-DOS chdir command.

About This Article

This article is from the book:

About the book author:

Richard Blum has more than 30 years of experience as a systems administrator and programmer. He teaches online courses in PHP, JavaScript, HTML5, and CSS3 programming, and authored the latest edition of Linux For Dummies.

This article can be found in the category: