

- #TERMINAL FIND FILE HOW TO#
- #TERMINAL FIND FILE INSTALL#
- #TERMINAL FIND FILE PLUS#
- #TERMINAL FIND FILE DOWNLOAD#
#TERMINAL FIND FILE HOW TO#
You can copy or move a file by providing the current location of the file, followed by its intended destination.įor instance, here's how to move a file from your Documents folder to its parent directory: $ cd Documents The cp command copies and the mv file moves. If you've got a file you want to open from a terminal, use the xdg-open command: $ xdg-open /home/tux/Pictures/holiday-photos/winter-holiday.jpegĪlternatively, you can open a file in a specific application: $ kate /home/tux/Desktop/zombie-apocalypse-plan-A.txt 5. You can't cd to a file, though: $ cd /home/tux/Pictures/holiday-photos/winter-holiday.jpeg You can change to a folder using the cd command: $ cd /home/tux/Pictures/holiday-photos

The output of the find command is the location of the file or folder you're looking for. The * characters are wildcards, so find locates any filename containing "holiday", whether "holiday" appears at the beginning, middle, or end of the filename. The -iname option tells find to search for a file by name, ignoring capitalization.įinally, the "*holiday*" argument tells find that the word "holiday" appears somewhere in the filename.

The find command requires you to tell it where to look.Ĭasting a wide net is usually best (if you knew where to look, you probably wouldn't have to use find), so I use $HOME to tell find to look through my personal data as opposed to system files. home/tux/Pictures/holiday-photos/winter-holiday.jpeg There's a great Linux command to help you find it again, and that command is appropriately named find: $ find $HOME -iname "*holiday*" Find a fileĪdmit it, you sometimes misplace a file. There's an advanced method, of this, too, but because you know everything you need to know to deduce it, I leave it as an exercise for you. You effectively teleported straight from your Documents folder to your Desktop folder. It works, and if it's clear to you then use it! However, here's the intermediate method: $ cd Documents Here's the beginner-level method: $ cd Documents Suppose you want to look in your Documents folder, and then at your Desktop. The advanced level of this exercise is to navigate around your files using a mixture of dots and folder names. Repeat it often until you get used to it! You can practice entering a folder and then leaving again with the frequent use of ls to look around and confirm that you've changed locations: $ cd Downloadsĭocuments Downloads Music Pictures Videos Taking a step out of a folder you've entered is represented by the cd command and two dots (. To "close" a folder, you change out of that location.
#TERMINAL FIND FILE PLUS#
The command to use is cd plus the location you want to change to: cd Downloads It becomes your current location.įor example, say you want open your Downloads folder. The end result is the same: once you change to a folder, you are "in" that folder. Instead of opening a folder, you change to a location. In a terminal, the thought process is slightly different. Once it's open, that folder usually dominates the window. In a graphical file manager, you open a folder by double-clicking on it. Once you have your terminal application open, you can get a view of your file system using the command ls.
#TERMINAL FIND FILE INSTALL#
For this article to be useful on Windows, you can install Cygwin which provides a POSIX environment. Windows: PowerShell is the open source terminal application, but it uses a language and syntax all its own.
#TERMINAL FIND FILE DOWNLOAD#
Download iTerm2 to get a feature-rich, GPLv2 replacement. MacOS: The default terminal application isn't open source and is widely considered lacking in features. Regardless of the name, you can usually launch it from your application menu using the key word "terminal." Linux: Look for Console, Konsole, or Terminal. Your operating system might have a unique name for it, but generically it's usually known as a "terminal" or "console". The mainframe-and-terminal model is now essentially emulated through an application. Today, everyone's got a computer on their desk or in their bag. The terminal is as relevant today as it was half a century ago, and in this article, I provide five common file management tasks you can do with nothing but the shell. Don't be fooled by this "ancient" history. And historically, a terminal was a physical access point, consisting of a keyboard and a readout (a printer, long ago, and later a cathode ray tube), that provided convenient access to a mainframe. Traditionally, the shell is the place where the user and the OS could interface directly with one another. Welcome to the communityĪ terminal is an application that provides access to the user shell of an operating system (OS).
