In Linux, the whereis command is a powerful command that may be used to determine the location of executable programs, source or binary files, man pages, and configuration files. It can be simply used as :
Replace with your desired files or man pages.

In Linux, Which command is used to give the location of the executable command to the console.
In windows, This command does not work and gives an error -‘which’ is not recognized as an internal or external command, operable program, or batch file.
C:>which derby
‘which’ is not recognized as an internal or external command, operable program, or batch file.
What is windows equivalent command of which command in Unix?
This tutorial covers which command alternative in windows
- using where the command
- Cygwin tool
- PowerShell command

Is there an equivalent of the Unix whereis command in Windows?
So that I could figure out where commands I can run actually is.
asked Aug 11, 2009 at 10:50
The where command does what you want and goes back at least to the resource kit for Windows 98, and is included by default in Server 2003, Vista, and newer:
C:\>where csc
C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe
C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exeIf executed with no arguments (on Vista), it results in one of my favorite messages:
C:\>where
ERROR: The operation completed successfully.If executing in PowerShell, be sure to include ‘.exe’ to distinguish from any ‘where’ aliases or scripts along the path. (‘where’ is a typical alias for Where-Object.ps1)
C:\> where.exe where.exe
C:\Windows\System32\where.exeanswered Sep 10, 2009 at 23:00
1 gold badge17 silver badges9 bronze badges

Если вы хотите эффективно использовать свой компьютер, то вам необходимо знать и выучить горячие клавиши.
Горячие клавиши – это сочетание клавиш для быстрого выполнения тех или иных действий.
На много проще не водить мышкой в поисках нужного действия, а получить его нажатием клавиш.
В этом нет ничего сложного. Немного потренировавшись, вы будете выполнять эти действия автоматически. Зато эти знания намного увеличат скорость вашей работы.
Конечно, разнообразие горячих клавиш огромно. Кажется, что выучить их просто не реально. Но и не надо запоминать все!

Я думаю, что даже компьютерные ассы их все не знают. Хотя всё возможно, на то они и профессионалы!
Для начала вы можете подобрать для себя самые часто повторяющиеся действия при работе за компьютером и запомнить их выполнение горячими клавишами.
Постепенно расширяйте свои познания изучением новых вариантов, и вы сами удивитесь, насколько легче вам станет работать.
In Linux, we have the “which” command to find out the path of an executable.
What is its Windows equivalent? Is there any PowerShell command for doing that?
![]()
asked Nov 5, 2010 at 2:55
2
Newer versions of Windows (I think Windows 2003 and up) have the where command:
C:\>where ping
C:\Windows\System32\PING.EXEAnd for PowerShell, explicitly add the .exe suffix:
PS C:\>where.exe ping
C:\Windows\System32\PING.EXEanswered Nov 5, 2010 at 3:03
![]()
Randy LevyRandy Levy
1,5391 gold badge10 silver badges10 bronze badges
6
Yes, Get-Command will find all commands including executables:
PS\> Get-Command ipconfigIf you want to limit the commands to just executables:
PS\> Get-Command -CommandType ApplicationWill find all exes in your path. There is an alias for interactive use:
PS\> gcm net* -CommandType ApplicationTo get the path of an executable, you can use the Path property of the returned object. For example:
PS\> (Get-Command notepad.exe).PathFor more info, run man Get-Command -full.
dangph
4,5153 gold badges25 silver badges31 bronze badges
answered Nov 5, 2010 at 2:58
user10404user10404
8415 silver badges4 bronze badges
where.exe explicitly rather than where works for me in PowerShell:
PS C:\Users\birdc> where ping
PS C:\Users\birdc> where.exe ping
C:\Windows\System32\PING.EXEanswered Sep 26, 2019 at 15:36
drkvogeldrkvogel
3974 silver badges9 bronze badges
3
In addition to user10404, the help command will work on aliases, so you can use the same command name (gcm) for help and interactive use:
help gcm -Parameter *
# or
man gcm -Par *answered Nov 8, 2010 at 21:44
yzorgyzorg
7372 gold badges6 silver badges20 bronze badges
If you want to make it short, create a one line which.cmd file with the content
echo %~$PATH:1This will search the first parameter (%1) fed to the script and display the full path of found file.
Good place to put this script in windows 10 is
%LOCALAPPDATA%\Microsoft\WindowsApps\which.cmd
And you get your which command in path.
c:\>which cmd.exe
c:\>echo C:\Windows\System32\cmd.exe
C:\Windows\System32\cmd.exeanswered Nov 7, 2017 at 23:07
Cmd
where
C:\Users\X>where ping
C:\Windows\System32\PING.EXE
C:\Users\X>Powershell
Get-Command
PS C:\Users\X> Get-Command ping
CommandType Name Version Source
----------- ---- ------- ------
Application PING.EXE 10.0.1776… C:\WINDOWS\system32\PING.EXE
PS C:\Users\X>answered May 4, 2020 at 22:24
JomaJoma
1313 bronze badges
Table of Contents
- The equivalent of the Whereis command in Windows
However, if you attempt to use the Whereis command in Windows, you will receive an error message stating that the command ‘whereis’ is not recognized as an internal or external command, operable program, or batch file. mostly due to the fact that Windows lacks this command. Windows is mainly GUI based and you can find them easily but if you want a command version of whereis in Windows then you are in right place.
Ourtechroom will assist you in locating the Windows equivalent of the Whereis command. They are very useful in Windows for locating program executables and configuration files.
Клавиша Option на Mac и другие особенности яблочной раскладки
![]()
![]()
Для большинства людей компьютеры Apple – это что-то из области фантастики, что-то странное, непонятное и очень неудобное. Отчасти подобные замечания справедливы, ведь яблочные ноутбуки и настольные машины сильно отличаются от привычных всем Windows-компьютеров. Новоиспеченный пользователь Mac уже на начальном этапе впадает в ступор, сталкиваясь с тем, что клавиатура работает не так, как он привык.
Неизвестно, вызваны ли столь кардинальные изменения ненавистью Стивена Джобса к продуктам Microsoft, или в яблочной корпорации свои представления об анатомии рук, но привычные горячие клавиши на их компьютерах выглядят и работают несколько иначе. В данном материале читатель найдет ответы на базовые вопросы, такие как: «Почему не работает смена раскладки?»; «Как выглядит клавиша Option на Mac?» и прочие. Решение тех и других проблем совсем рядом, нужно лишь уделить некоторое время на настройку.

Using a Windows PC Keyboard on Mac with Remapped Windows & ALT Keys
This trick works the same with all Windows and PC keyboard with the standard CTRL / Windows / ALT key layout, and all versions of Mac OS:
- Connect the Windows PC keyboard to the Mac as usual, either by USB or Bluetooth
- Pull down the Apple menu and choose “System Preferences”
- Click on “Keyboard”
- Choose the “Keyboard” tab and then click on the “Modifier Keys” button in the lower right corner of the preference panel
- Choose the PC keyboard from the “Select Keyboard” dropdown menu at the top of the Modifier keys screen to insure you are modifying the proper keyboard connected to the Mac


Once finished you will have a new digital layout of the Windows PC keyboard keys when used on the Mac:
- WINDOWS key becomes the ALT / OPTION key on Mac OS
- ALT key becomes the COMMAND key on Mac OS
* NOTE: Some PC keyboards also have the “CNTRL” and “ALT” keys switched too, compared to a standard Mac key layout. If applicable, go ahead and switch those with the same Modifier Key trick outlined above.
A simple way to confirm the keyboard modifier keys are switched as expected is to issue a keyboard shortcut, like a screen capture (Command Shift 3) or a Close Window command (Command + W). It should work as you’d expect based on the Mac keyboard layout.
Obviously this isn’t going to change the actual physical keyboard appearance, so you’ll have to get used to the appearance of the keys saying one thing, but doing something else. But if you are mostly a touch-typer and never look at your hands when typing this shouldn’t be an issue.
Essentially you are reversing the Windows PC keyboard Windows and ALT keys (which become the Command and Option/ALT keys when connected to the Mac), which puts them in line with the default Mac and Apple keyboard layout of those buttons. Thus, the Windows PC keyboard Windows key becomes the new ALT / OPTION key on the Mac, and the Windows PC keyboard ALT key becomes the new COMMAND key on the Mac, just like it would be on an Apple keyboard.
For example, here’s a Windows PC keyboard with a different modifier key layout than the Apple keyboard layout:

And here’s a Apple keyboard with different modifier key layout than the Windows PC keyboard:

Thus you can see why switching the modifier key behavior when the PC keyboard is connected to the Mac can be helpful.
By the way if you’re coming to the Mac from the Windows world, which is perhaps why you have a Windows PC keyboard in use on a Mac in the first place, you’ll probably appreciate learning the Home and END button equivalents on a Mac keyboard, what the Print Screen button equivalent is on a Mac, potentially using the Delete key as a Forward DEL on a Mac, or discovering how to use Page Up and Page Down on a Mac keyboard, and understanding what and where the OPTION or ALT key is on a Mac too.
So, try this out if you have a Windows keyboard you want to use with a Mac, or if you want to try an external PC keyboard on a Mac then go ahead and don’t be shy, because simply swapping those two modifier keys can remedy one of the biggest annoyances when using a Windows PC keyboard on a Mac.
Window PowerShell which alternative
Get-Command in PowerShell works the same as where command, This will work only in PowerShell command prompt only.
PS C:\> Get-Command javaCommandType Name Version Source----------- ---- ------- ------Cygwin is a runtime tool that supports Linux commands in windows.
you can install it from here
all the Linux commands work in windows, which command also works as expected
Подписывайтесь на наши социальные сети
Похожие статьи
Использование клавиши Option
Альтернативный ввод с клавиатуры
Использование клавиши Option аналогично использованию клавиши AltGr на европейских клавиатурах IBM-совместимых ПК в том смысле, что ее можно использовать для ввода дополнительных символов , символов и диакритических знаков . Доступные параметры различаются в зависимости от языкового стандарта ввода с клавиатуры, выбранного пользователем. Например, при вводе с клавиатуры на английском языке (США) ⌥ Option + a создает символ « å », а ⌥ Option + 4 дает знак цента «¢».
Клавиша Option также может предоставить доступ к функциям мертвого ключа . Например, удерживание ⌥ Option при нажатии ` создаст выделенный серьезный акцент, который будет добавлен к следующей букве, если это возможно — поэтому, если e затем нажать an , результирующим символом будет è . Если r вместо этого нажимается an , два символа несовместимы, поэтому результатом будет `r .

Выделенные оранжевые клавиши показывают акценты, доступные при комбинации ⌥ Option клавиш и символов клавиатуры e ` i n u . Затем ударение можно применить к соответствующим буквам как в нижнем, так и в верхнем регистре. Дополнительные символы, создаваемые Mac, представляют собой комбинацию ⌥ Option клавиши и ⇧ Shift клавиши, нажатой вместе. При нажатии этой комбинации клавиатура теперь будет создавать другой набор или версию предыдущего набора в верхнем регистре в некоторых случаях.

Обратите внимание, что удерживание клавиши Shift, а также клавиши выбора при нажатии буквенной клавиши может создать «заглавные» версии того, что получается, когда та же буквенная клавиша нажата, когда удерживается клавиша выбора, но не клавиша Shift. Например:
- ⌥ Option + a приводит к å. ⌥ Option + ⇧ Shift + a дает Å.
- ⌥ Option + c приводит к ç. ⌥ Option + ⇧ Shift + c дает.
- ⌥ Option + o приводит к ø. ⌥ Option + ⇧ Shift + o приводит к Ø.
- ⌥ Option + ‘ дает æ. ⌥ Option + ⇧ Shift + ‘ дает.
Ключ Option часто используется в сочетании со специальными клавишами , как Tab ↹ , delete и return обеспечить альтернативные функции. Например, ⌥ Option + Return обычно создает разрыв строки, который не интерпретируется как разрыв абзаца .
Альтернативные кнопки и пункты меню
Клавиша также используется для предоставления альтернативных пунктов меню и кнопок при нажатии. Примеры:
- Safari , Finder — при нажатии клавиши Option пункт меню «Закрыть окно» переключается на «Закрыть все окна». Следовательно, щелчок по окну закрытия окна с нажатой клавишей выбора также вызывает «закрыть все». Эта функциональность является стандартом де-факто Macintosh и доступна во многих других программах.
- Dock — клавиша Option вызывает переключение пунктов меню «Hide» и «Quit» в контекстном меню значка Dock на «Hide Others» и «Force Quit».
- iTunes — кнопка « Создать список воспроизведения» переключается на кнопку « Создать смарт- список воспроизведения» . Удерживая Option и нажав зеленую кнопку «Масштаб окна» (+) в верхнем левом углу, вы переводите окно iTunes в полноэкранный режим, а не переключаетесь между установленным пользователем размером окна и iTunes Mini Player.
- iPhoto — кнопка поворота изображения переключает между «повернуть вправо» и «повернуть влево».
- Элементы строки меню — значок звука будет отображать настройки ввода / вывода аудиоустройства вместо ползунка регулировки громкости, элемент батареи покажет состояние аккумулятора, элемент синхронизации MobileMe покажет дату / время последней синхронизации отдельных синхронизируемых элементов и будут предлагать дополнительные пункты меню, такие как «Диагностика синхронизации», а значок беспроводной связи будет отображать расширенную информацию о беспроводной сети, а в Mac OS X Lion — пункт для запуска диагностического приложения Wi-Fi (при подключении AirPort).
Пример iPhoto — это пример элемента управления, поведение которого регулируется предпочтениями, которые временно инвертируются при удерживании клавиши Option. Предпочтение в этом случае заключается в том, каким способом повернуть изображение: если пользователь изменяет направление вращения по умолчанию в настройках на по часовой стрелке, удерживание клавиши Option заставит кнопку вращаться против часовой стрелки, и наоборот. Такие элементы управления — то есть те, чье поведение определяется предпочтениями — обычно являются обратимыми.
Обычная клавиатура
В текстовых областях клавишу Option можно использовать для быстрой навигации с помощью клавиатуры.
- ⌥ Option + ← / → — переход к предыдущему / следующему слову.
- Эквивалент Windows: Ctrl + ← / →
- ⌥ Option + ↑ / ↓ — перейти к началу / концу текущего абзаца.
- Терминальный эквивалент: ⇧ Shift + Home / End
- Эквивалент Windows: Home / End
- ⌥ Option + Page up / Page down — перемещать курсор вверх / вниз по странице. Без клавиши Option клавиши Page up / Page down позволяют просмотру страницы прокручивать страницу вверх / вниз без перемещения курсора.
- Эквивалент Windows: Page up / Page down
Альтернативные действия мыши
Если удерживать нажатой клавишу Option при использовании мыши, действие мыши может изменить поведение
- щелчок мышью по приложению, отличному от текущего, автоматически скрывает текущее приложение и переключается на приложение, по которому щелкнули.
- При перетаскивании элемента (например, файла в Finder или слоя в Adobe Photoshop ), удерживая нажатой клавишу Option, вы убедитесь, что вы Дублируете что-то, а не перемещаете его.
Скачивание файлов
В таких браузерах, как Safari и SeaMonkey , клавишу выбора можно использовать для загрузки файла. Нажатие клавиши выбора при нажатии клавиши возврата в адресной строке приводит к загрузке файла с указанным URL. Кроме того, нажатие клавиши выбора при щелчке по гиперссылке приводит к загрузке целевой ссылки. Помимо методов с ключом выбора, другие способы загрузки включают щелчок правой кнопкой мыши (или нажатие ctrl (^) на компьютерах Mac) по гиперссылке для вызова контекстного меню , затем выбор соответствующей команды загрузки или вставка URL-адреса непосредственно в окно загрузок Safari. .
Разное
В некоторых приложениях клавиша выбора используется уникальным образом:
- Терминал (включая как минимум версию 1.4.6 — больше не актуально с 2.0.1, ⌘ Cmd + ← / → работает.) — ⌥ Option + ← / → стрелки перемещаются между открытыми окнами терминала в цикле. Обычно в программах используются ⌘ Cmd символы + ` и ⌘ Cmd + ⇧ Shift + ` , которые также поддерживаются в Терминале.
- Полосы прокрутки (включая как минимум OS X 10.3.x) — щелчок стрелки полосы прокрутки с нажатой клавишей Option может привести к переходу представления на следующую страницу вместо перемещения на несколько строк. Щелчок по полосе прокрутки при нажатой клавише Option может привести к тому, что представление переместится в эту позицию вместо перехода на следующую страницу. Это поведение можно изменить в Системных настройках: Внешний вид.
- Загрузочный диск — удерживание клавиши Option во время загрузки активирует диспетчер загрузки, встроенный в прошивку, где пользователь может выбрать, с какого диска / раздела загружать компьютер, включая разделы Mac OS и Mac OS X или диски на компьютерах Mac на базе PowerPC. , а также разделы или диски Mac OS X и Microsoft Windowsна компьютерахMac на базе Intel (под управлением Mac OS X 10.4.6 и более поздних версий с установленным Boot Camp от Apple Inc. ). Встроенный загрузчик также может загружать другие операционные системы, такие как Linux ; однако в загрузчике они помечены как «Windows».
Delete/Del Key
The Delete ⌦ key is located in the Home / End key cluster. This key sometimes labeled “Del”.
On Mac, this key is labeled “delete” or ⌦ .
On Windows, Delete ⌦ is often used to delete things. For example, on desktop, select a file, pressing Delete ⌦ will put the file to the “Recycle Bin”. In a text editor, the key will delete to the right of the cursor.
On the Mac, from early 1990s to 2006, the DeleteВ вЊ¦ key is almost never used, even in text editors. When there is a function assigned to it, it is used to delete to the right of the cursor.
Keyboard Shortcuts
People new to the Mac but proficient using keyboard shortcuts to speed up their workflow may be a little taken aback by the notation used in the Mac’s menu system to indicate when a keyboard shortcut is available.
Клавиша выбора — Option key
Клавиша Option является модификатор ключа присутствует на Apple , клавишных . Он расположен между ключом управления и клавишей Command на обычном Mac клавиатуре. На современных (по состоянию на 2020 год) клавиатурах настольных компьютеров и ноутбуков Mac есть две клавиши Option, по одной с каждой стороны пробела. (По состоянию на 2005 год на некоторых ноутбуках был только один, чтобы освободить место для клавиш со стрелками .)
Apple обычно использует символ U + 2325 ⌥ OPTION KEY для обозначения клавиши Option. С 1980 по 1984 год в серии Apple II эта клавиша была известна как закрытая клавиша яблока , и на ней была черная линия, изображающая закрашенное яблоко ( информацию об истории и «открытом яблоке» см. В клавише Shift. «. Также вы можете изменить внешний вид клавиш выбора, нажав shift + key + option.)
С 1990-х годов «alt» также иногда появлялся на клавише для использования в качестве клавиши Alt с программным обеспечением, отличным от Mac, таким как программы Unix и Windows; с 2017 года новейшие клавиатуры Apple, такие как Magic Keyboard, больше не имеют метки «alt». Клавиша Option в операционной системе Mac работает иначе, чем клавиша Alt в других Unix-подобных системах или Microsoft Windows . Он не используется для доступа к меню или горячим клавишам, но вместо этого используется как модификатор для других кодов команд, а также для облегчения доступа к различным акцентам и символам. В этом отношении она сродни клавише AltGr , которую можно найти на некоторых IBM-совместимых клавиатурах ПК.
How to Reassign Key Locations on a Mac
Instead of having to relearn key locations, use the Keyboard pane in System Preferences to reassign the modifier keys.
Launch System Preferences by clicking its icon in the Dock, or clicking the Apple menu on the left side of the menu bar then selecting System Preferences.
:max_bytes(150000):strip_icc()/001_what-are-windows-keyboard-equivalents-to-mac-2260203-5c785200c9e77c00011c8336.jpg)
In the System Preferences window that opens, select the Keyboard preference pane.
Click the Modifier Keys button.
:max_bytes(150000):strip_icc()/003_what-are-windows-keyboard-equivalents-to-mac-2260203-5c78523546e0fb0001edc7d1.jpg)
Use the pop-up menu next to the Option and Command keys to select the action you wish the modifier keys to perform. In this example, you want the Option key (the Alt key on a Windows keyboard) to execute the Command action, and the Command key (the Windows key on a Windows keyboard) to perform the Option action.
Don’t worry if this sounds a bit confusing, it will make more sense when you see the drop-down pane in front of you. Also, if things get a bit mixed up, click the Restore Defaults button to put everything back the way it was.
:max_bytes(150000):strip_icc()/004_what-are-windows-keyboard-equivalents-to-mac-2260203-5c7852cf46e0fb0001edc7d3.jpg)
Make your changes and click the OK button, then close System Preferences.
With the modifier keys remapped, you shouldn’t have any problems using any Windows keyboard with your Mac.
Numeric Keypad Keys
The numerical keypad keys send different USB scancode than the same keys at top row of the main key section.
However, on macOS, the number pad keys are remapped to be the same as the number keys on the main section of keyboard.
The difference between PC and Mac keyboard’s number pad are:
- The arrangement of plus minus multiply divide keys are different.
- PC keyboard has NumLock key. Apple keyboard does not have Number Lock toggle.
- Apple keyboard has clear .
- Apple’s Numeric keypad has a equal = key.
- patreon me $5
- amazon egift card to xah@xahlee.org , $20 is nice.
- paypal to xah@xahlee.org , $20 is nice.
- bitcoin me 19dfoa3Q7oehm9MwCULQzBG8vqfCaeMazH
If you have a question, put $5 at patreon and message me.
Сочетания клавиш (клавиши-модификаторы)
Комбинации клавиш в компьютерах Apple мало чем отличаются от таковых в Windows, за исключением смены раскладки. Это значит, что все привычные сочетания, такие как: «скопировать», «вставить», «отменить» на месте, изменилась лишь клавиша-модификатор, вместо Control используется Command. Command + C, Command + V и так далее (что логично, ведь на то она и Command, чтобы выполнять команды).
Часто клавиши-модификаторы обозначаются с помощью специальных символов:
Выполняет функцию клавиши Win, используется в качестве основы модификатора.
Выполняет функцию, аналогичную таковой в Windows.
Вызывает альтернативные опции.
Используется в сложных комбинациях.
Может использоваться в качестве модификатора после установки Karabiner Elements, причем команды можно назначать вручную, не взирая на ограничения системы.
Insert Key
On PC keyboards, there is the Insert key (sometimes labeled Ins ). Apple keyboards doesn’t have this key.
The equivalent of the Whereis command in Windows
Let us look few of the equivalents of the Whereis command in windows.
Using gcm command in Powershell
PowerShell is a task automation system that consists of a command-line shell, a scripting language, and a configuration management framework.
You can use the below command which is equivalent to whereis command.
gcm stands for Get-Command.
For demonstration, I am going to the find installation location of python.exe. So I use the below command.
This command will display ApplicationName, Version, Source, and version. Here, the installation location can be found under Source Column.
Using Get-Command in Powershell
Get-Command is also useful command and you can use it as below.
PowerShell’s Get-Command Python.exe gets Python.exe’s location and properties.
PowerShell searches the system PATH environment variable for the Python.exe executable file and gives the path, version number, module name, and command type.
If PowerShell cannot locate Python.exe, the command will return an error indicating that the command cannot be found.

If you only want to get the Source of the Python installation then type below:

Also, the below command does the same:
Replace Python.exe will your desired application or config file.
Using Where Command in Powershell and Command Line
Where is in fact a standalone application that can be used in both PowerShell and Command-Line. They are not built commands in the Command prompt.
The syntax for Where command looks like this:
- /R path indicates the recursive directory or folder.
- /Q only outputs the exit code.
- /F shows only the file’s full name.
- /T only shows file change time.the
- pattern defines the file(s) to search.
Open Powershell or the command line and type the below command.
where.exe where pythonReplace Python with the desired application or config file.

If you know it is under C: drive and then you can recursively search for the file and get its location. For this type below command.
where /r c:\ python.exe
Using Where Command in Powershell and Command Line for multiple executable files
By separating file names with spaces, the where command can find multiple files. Here we will look how to find notepad.exe and calc.exe at the same time.
notepad.exe calc.exe
Using Environment Variable
If the path of the application is enlisted in Environment Variables then you can use the below command.
Replace with desired application and files.
Here I am going to find out the installation path of the python application shown below.
Using Filter Command
This will perform a recursive search over the contents of the C drive for any files whose names begin with FFmpeg, regardless of the extension of those files. If they are located, then you will see all paths displayed.
dir -path c:\ -filter ffmpeg.* -rWindows File Explorer search bar works like where. Search for files by name or pattern and select the location. Open File Explorer and type your search word in the top right box.
What is the where command’s policy on file name suffixes like.exe and.dll?
Where looks for files using their full names, including the extension. For instance, if you typed notepad.exe, it would only look for the file with that name and not for any others that might be called notepad or notepad.dll.
In this way, you can find out What are Whereis commands in Windows. And what is its nearly equivalent command in Windows?
Windows Logo Key and Apple Command Key
вќ–В Window and вЊВ command both send the same USB scancode.
Their behaviors are different in Mac and Windows.
- Microsoft logo key invokes the Start menu.
- When pressed with letter key, it invokes a command that’s meaningful system-wide. For example, вќ–В Window + d gets you the desktop.
Under Mac, the Command key is used as a modifier key to invoke shortcuts. For example, вЊВ command + c is Copy. It is similar to MS Window’s use of the Ctrl key.
The в–¤В Menu key, also called Application key, is invented by Microsoft. Typically only on the right side. It is used for Context Menu. The key’s function is similar to the mouse’s right button, or pressing Shift + F10 in most applications.
Mac doesn’t have в–¤В Menu key. If you use a Windows keyboard on a Mac, the в–¤В Menu key does Ctrl + p .
Where command in windows
Where command is equal to which command in Unix/Linux.
It will only work from the windows 2003 version.
where the command prints the location of the file for a given search pattern. This search has given a search pattern in the environment variable path.
Here is a syntax
/R – recursive path for searching files
/F – Displays the path of the file in double quotes
/T – Displays file path metadata like size, modified date
It contains a string or pattern of strings using * for multiple, ? for a single character
Here is help documentation for the where.exe command
Here is an example where the command for the location of the ping command
suppose, you want to know the java executable location when there are multiple versions are included
C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exeif you want to know the location for a word that starts with jav, suffix * to it
if you used search pattern jav? It searches for the words jav or and the fourth letter might be any single letter or zero.
How to Use a Windows PC Keyboard on Mac by Remapping Command & Option Keys

Macs can use nearly all keyboards built for Windows PC, whether they are USB or Bluetooth, but you may notice that the layout of some of the modifier keys are different on a Mac keyboard from the layout of a Windows keyboard. Specifically, the WINDOWS and ALT key of a Windows keyboard are switched compared to the Mac keyboard layout of OPTION/ALT and COMMAND keys. This can lead to erroneous keyboard shortcuts or other unexpected key press behavior when using a PC keyboard with a Mac.
Возможности горячих клавиш
И так начнем расширять свои возможности!
Клавиша WINDOWS (Win) находится на клавиатуре внизу слева между клавишей Ctrl и клавишей Alt. Чаще всего на ней изображена эмблема WINDOWS.

Плюс («+») в сочетании клавиш означает, что после нажатия и удержания первой клавиши, надо нажать вторую.
💎 Если при работе за компьютером вам необходимо будет выполнить какое-нибудь задание, а открытие новой вкладки или нового окна будет замедлять работу компьютера, то с помощью горячих клавиш можно создать новый (виртуальный) рабочий стол.
Дополнительный рабочий стол можно использовать для любых целей. Например: включить на нем фильм или игру, для того, чтобы развлечься в перерывах в работе; начать выполнение другой работы и т.д.
Создание дополнительного рабочего стола (или нескольких).
Нажмите вместе кнопки CTRL+WINDOWS+D и у вас появится новый рабочий стол. Нажмете еще раз — появится еще один рабочий стол и так далее.

Создание – CONTROL+ВВЕРХ .
Чтобы вернуться к основному рабочему столу вы можете перемещаться.
Для перемещения между столами нажмите вместе кнопки CTRL+WINDOWS+стрелка вправо или влево.
Нажмите кнопку CONTROL+ стрелка вправо или влево.
Когда виртуальный стол вам будет больше не нужен, его можно просто закрыть. Для этого необходимо выполнить следующие действия:
Нажать вместе кнопки CTRL+WINDOWS+F4.
Удерживать клавишу OPTION нажать на +, который появится на любом из рабочих столов, чтобы закрыть его.
💎 Если у вас на компьютере открыто много рабочих окон, то не обязательно их закрывать одно за другим, чтобы вернуться на рабочий стол. Благодаря горячим клавишам это можно сделать за секунду.
Нажав одновременно клавиши WINDOWS+М.
Чтобы мельком взглянуть на рабочий стол нужно:
💎 Если для работы вам надо пользоваться сразу двумя программами, то для этого можно разделить экран пополам. Для этого действия можно воспользоваться горячими клавишами.
Сначала откройте приложение (документ) которое вам нужно и нажмите клавишу WINDOWS и стрелку влево.
Затем откройте другую программу и нажмите клавишу WINDOWS и стрелку вправо.
После этого экран разделится на два окна, в которых будут ваши программы. Теперь можете работать, например, писать статью и просматривать нужные вам сайты или видео.
💎Если вы при работе используете несколько окон, то можно воспользоваться горячими клавишами для переключения программ.
Вы можете управлять разными приложениями на рабочем столе несколькими способами:
Способ № 1
Чтобы увидеть список запущенных программ, нажмите вместе клавиши CTRL+ALT+TAB.
Способ № 2
Нажать клавиши WINDOWS+ TAB.
Нажмите кнопки CONTROL+TAB.
Для переключения между программами нажимайте клавиши ALT+TAB, и можете переключаться между программами, не открывая их.
💎 Если одна из программ зависла, то чтобы избежать потери всех данных и не делать перезагрузку, необходимо открыть «Диспетчер задач», чтобы отключить зависшую программу. Лучше потерять данные одной программы, чем потерять данные всех открытых приложений.
Для этого воспользуйтесь горячими клавишами.
Нажмите кнопки CTRL+SHIFT+ESC.
Нажмите кнопки COMMAND+OPTION+ESCAPE.
💎 Чтобы получить быстрый доступ к «Проводнику», т.е. к стандартным приложениям, встроенным в систему:
Нажмите кнопки WINDOWS+Е.
Нажмите кнопку FINDER.
💎 Если вы хотите применить «экранную лупу» для увеличения изображения
Вы запустите приложение «экранная лупа» нажав одновременно кнопки WINDOWS и «+» или «-». В результате вы увеличите часть экрана, на которой расположен курсор.
Нажмите ALT, COMMAND и «+» или «-».
💎Если вы хотите сделать скриншот (снимок экрана) и сохранить его в папку «Изображения» — «Снимки экрана», то это можно сделать моментально с помощью горячих клавиш.
Нажмите кнопки WINDOWS+PRINT SCREEN.

Нажмите кнопки COMMAND+SHIFT+3.
💎 Если вы хотите попасть в «Центр уведомлений», где расположено множество функций последних версий WINDOWS, и который предоставит вам быстрый доступ к настройкам компьютера
Нажмите одновременно клавиши WINDOWS+А.
Центр уведомлений находится в правом верхнем углу экрана.
💎 Чтобы получить быстрый доступ к «Настройкам» необходимо нажать одновременно клавиши WINDOWS+I.
The command collection
Abbreviations in the system
Shortcuts in Microsoft Office or iWork
Shortcuts in Safari
Control Key
Control Key in Microsoft Windows
The Control Key in Windows is used for keyboard shortcuts. For example, Copy is Ctrl + c , Paste is Ctrl + v .
On the Mac, Command key is used for keyboard shortcuts. Copy is вЊВ command + c , Paste is вЊВ command + v .
Control Key in Mac OS X
The Control key under Mac is rarely used. When used, it is as a modifier in combination with other modifier keys. For example, in Safari (as of 2018-05-01) Ctrl + вЊВ command + 1 show bookmarks sidebar.
Mac OS X by default supports emacs basic cursor movement keybindings. You can try it in TextEdit. They are:
Mac OS X’s default emacs keybindings:
- Ctrl + f в†’ move forward
- Ctrl + b в†’ move backward
- Ctrl + n в†’ move down a line
- Ctrl + p в†’ move up a line
- Ctrl + a в†’ beginning of line
- Ctrl + e в†’ end of line
- Ctrl + k в†’ delete current position to end of line
- Ctrl + y в†’ paste
Yes, you can keep that Windows keyboard you love so much
:max_bytes(150000):strip_icc()/ryanperiansquare-de5f69cde760457facb17deac949263e-180a645bf10845498a859fbbcda36d46.jpg)
Newcomers and old pros alike use Windows keyboards with Macs. Why toss a perfectly good keyboard just because you switched platforms? Some people just prefer how the keys feel to the ones Apple supplies. Any wired USB keyboard or Bluetooth-based wireless keyboard will work fine with a Mac.
In fact, Apple even sells the Mac Mini without a keyboard or mouse. There’s just one little problem with using a non-Apple keyboard: figuring out some of the keyboard equivalents.
Раскладка клавиатуры
С тем, что назначения клавиш в Mac отличаются от таковых в Windows, разобрались. Теперь стоит понять, чем отличается раскладка и как это исправлять. Да-да, именно исправлять, ведь по умолчанию в Mac используется раскладка клавиатуры, знакомая тем, кто пользовался печатной машинкой – русская машинопись. Техническое строение печатной машинки вынудило конструкторов выставить знаки препинания в верхний ряд клавиш, чтобы те не задевали друг друга, на компьютере же такой подход лишь замедляет скорость набора текста, поэтому необходимо сразу же сменить раскладку. Делается это просто:
- Переходим в «Системные настройки».
- Подпункт «Клавиатура».
- Подменю «Источники ввода».
- Далее необходимо добавить новую раскладку – Русская ПК, а прежнюю удалить.
Теперь все клавиши вернулись на свои места, и хоть гравировка на клавиатуре не совпадает с реальным назначением кнопок, любой знакомый со слепым методом ввода текста будет счастлив после смены раскладки. Также после этого на свое место вернется буква Ё, которую многие по сей день используют в печати.

PrtScn ScrLk Break vs F13 F14 F15
The PC has these keys: PrintScreen / SysRq , ScrollLock , Pause / Pause .
These keys have old history back to the 1980’s (or earlier) and in general are not used since 1990, except on Windows the PrtScn key is for screenshot.
Apple’s keyboards do not have these keys. On some Apple keyboards, they have F13 , F14 , F15 instead. “Apple Keyboard with Numeric Keypad” of 2009, has F16 to F19 .
The < PrintScreen ScrollLock Break >are different keys than < F13 F14 F15 >. They do not send the same signals. In any case, when either PC keyboard or Apple keyboard is plugged in on a Mac running Mac OS X 10.4, these keys have the same behavior (could be due to operating system).
2021 – Windows 10/11
answered Dec 2, 2021 at 18:09
Please, use where command:
> where app.exeIt is the best way to achieve your goal.
You can also use PowerShell command:
> $env:path.Split(';') | gci -Filter app.exeand expanded version looks like this:
> $env:path.Split(';') | select -Unique | ? {$_ -and (test-path $_)} | gci -Filter app.exeanswered Aug 4, 2015 at 21:39
Arek Bee
2 silver badges3 bronze badges
@echo off
@set PATH=.;%PATH%
@rem
@rem about: something similar like the unix-alike-which, but with
@rem within pure cmd
@rem
if "%1" == "" ( @echo Usage: @echo. @echo which 'cmd' @echo. @echo.if 'cmd' is not found, ERRORLEVEL is set to 1 @echo.
) else ( ( @for %%f in (%1 %1.exe %1.cmd %1.bat %1.pif) do if not "%%~$PATH:f" == "" ( @echo %%~$PATH:f ) else @set ERRORLEVEL=1)
)answered Sep 10, 2009 at 21:08
17 gold badges135 silver badges165 bronze badges
Somewhere “out there” I found this batch file whereis.bat:
@for %%e in (%PATHEXT%) do @for %%i in (%1%%e) do @if NOT "%%~$PATH:i"=="" echo %%~$PATH:iUpdate: maybe I found it here.
answered Nov 9, 2010 at 5:00
Craig McQueen
1 gold badge8 silver badges19 bronze badges
There is at least a Windows port for the which utility.
answered Aug 11, 2009 at 10:53
5 gold badges41 silver badges52 bronze badges
dir -path c:\ -filter ffmpeg.* -ranswered Jul 14, 2012 at 15:46
2 silver badges8 bronze badges
function find ($string) { Get-ChildItem -Path 'c:\' -Recurse -Filter $string;
}
function whereis ($string) { $superpath = "$env:Path;C:\Program Files;C:\Program Files (x86)"; (echo $superpath).Split(';') | Get-ChildItem -Recurse -Filter $string;
}PS >find Mozilla.admx
Directory: C:\Windows\PolicyDefinitions
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 1/27/2016 12:22 PM 37146 Mozilla.admx PS >whereis firefox.exe
Directory: C:\Program Files\Mozilla Firefox
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 9/21/2017 5:30 PM 477136 firefox.exe answered Oct 5, 2017 at 14:19
1 silver badge7 bronze badges
c:\> where /r c:\ csc.exeSample:
using where to find all copies of csc.exe
answered Apr 2, 2020 at 3:33

@echo off
if "%~1" equ "" ( echo usage: %~n0 [command] & exit /b 0
) else where $Path:%1 2>nul || ( echo | set /p x=%~n0: no '%1' in & path
)doskey which=where $1 2$Gnul> which.cmd git
C:\Program Files\Git\cmd\git.exe
> which.cmd foo
which: no 'foo' in PATH=C:\Windows\system32;C:\Windows;C:\Win
dows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0
\;C:\Windows\System32\OpenSSH\;C:\Program Files\PowerShell\7\;answered Aug 31, 2022 at 14:42
dir /s type-whatever-you-are-searching
13 gold badges107 silver badges223 bronze badges
answered Aug 11, 2009 at 13:04
Backspace Key
On PC keyboards, there is a Backspace key on the main section.
On Apple keyboards, this key is labeled “delete”.
Backspace Key Conventions
When in text editing, the Backspace is used the same way in both OS X and Windows. It delete texts to the left of the cursor.
In browser, Windows use Backspace key to “go back” to a previous visited page. For some time around 2005 to 2013, Mac OS X’s Safari browser also started to do the same, but removed this shortcut again when gesture with touchpad becomes popular. Use 2-finger swipe to the left to go back.
Переключение раскладки
Самая въевшаяся привычка всех пользователей Windows — сочетание клавиш Shift + Alt — большая проблема для новичков в мире яблок. Варианта решения проблемы два: либо привыкать к новому сочетанию Command + пробел (что анатомически значительно удобнее), либо установить Punto Switcher от «Яндекс», который позволяет использовать оба модификатора единовременно для смены раскладки клавиатуры, а также несет массу других функций (например, автоматическая смена языка без использования комбинации клавиш вовсе).
Windows and Mac Keyboard Differences
Here are the five most commonly used special keys on a Mac and their Windows keyboard equivalents.
Use these to control various Mac functions, including using Mac OS X startup shortcuts.
Alt/Option Key
вЊҐВ option on Apple keyboard and Alt on PC keyboards both send the same USB scancode.
Alt Key Use in Microsoft Windows
The Alt key in MS Windows has several different uses:
- It is used to invoke graphical menus. For example, pressing (and releasing) Alt by itself will activate the graphical menu, then the user can press a alphabetic key to invoke a menu command or use arrow keys to navigate the menu. For example, Alt e c invokes the copy command in edit menu, in Notepad and most other Microsoft Windows apps.
- When pressed simultaneously with a key, it invoke a command directly. For example, Alt + F4 closes the current window.
- When held down then type a number on the numeric keypad, it enters a special character. For example, hold Alt then type 0225 on numeric keypad will insert “á”. [see How to Input Unicode]
- If your Windows’s keyboard layout is set to a European language, then right Alt plus a letter key inserts special characters. [see International Keyboard Layouts] [see Alt Graph Key, Compose Key, Dead Key]
Option Key Use in macOS
The вЊҐВ option key is used for:
- Cursor control, with arrow keys. For example, вЊҐВ option + в†’ moves cursor by word.
- Option key is used to insert special characters, such as “• ™ ©”. For example, ⌥ + 8 will insert the bullet character “•”. [see Mac Keyboard Viewer]
- Option key is used as a modifier key together with the вЊВ command key. For example, in вЊВ command + вЊҐВ option + h invokes the command гЂ–Hide OthersгЂ— in all Apple applications.
The Command and Option Key Swap
Besides Windows and Mac keyboards having slightly different names, they also swap the positions of two often-used modifier keys: the Command and Option keys.
Main Return/Enter Key
On PC keyboard, the main enter key is labeled “Enter ↵”.
Note: the main enter/return key is different from the Enter on number keypad. (it sends a different key signal.)
Enter/Return Key Conventions
In Microsoft Windows desktop (Explorer), when a file is selected, Enter will open the file. (To rename the file, press F2 .)
In Mac desktop (Finder), when a file is selected, Enter will activate file rename. ( вЊВ command + o to open the file.)
Difference Between Apple and PC keyboards
This page discuss differences between Apple Keyboard and Windows keyboard.
On the PC keyboard, you have the Ctrl (Control key), вќ–В Window (Windows logo key), Alt (alternate key).
On Apple keyboard, you have Ctrl , вЊҐВ option (alt/option), вЊВ command (command) keys.
Windows keyboard. You have Ctrl вќ–В Window Alt keys. and в–¤В Menu .
Apple keyboard. You have Control Ctrl ( вЊѓ ), вЊҐВ option (Alt), вЊВ command keys.
Где она и как её применить?
Некоторые продвинутые пользователи Mac называют данную клавишу волшебной, ведь почти каждая функция с её применением открывает новые горизонты в использовании компьютера. Для начала стоит выяснить, где клавиша Option на Mac. На современных ноутбуках и клавиатурах от Apple Option расположена рядом с кнопками Command, а написано на ней, внимание, Alt. Тот самый Alt, знакомый всем, кто хоть раз в жизни садился за современную клавиатуру. Какие же возможности даёт эта кнопка?
Доступ к дополнительной информации в панели инструментов:
- Зажав Option и наведя курсор на иконку яблочка, можно получить доступ к более полной информации о системе.
- На ноутбуках можно получить информацию о состоянии аккумулятора.
- Если открыть настройки звука, зажав Option, можно выбрать источник воспроизведения.

Быстрый доступ к настройкам и альтернативным опциям:
- Если во время нажатия функциональных клавиш удерживать Option, то система автоматически откроет настройки, относящиеся к конкретной функциональной клавише.
- Во всех приложениях предлагаются альтернативные сочетания клавиш, так или иначе связанные с клавишей Option, для этого достаточно удерживать её при просмотре функции в панели инструментов.
- При использовании инструмента для создания резервных копий Time Machine клавиша Option позволяет выявить все диски, на которых хранится хотя бы одна копия.
Также кнопка Option позволяет вводить альтернативные символы, идентично Windows (это касается тех, кто до сих пор ставит дефис вместо тире).

Список горячих клавиш
Комбинации общего назначения
Комбинации для объектов и текстов
Надеюсь, вам пригодятся знания, полученные в этой статье.
Возможно вам будут интересны другие мои статьи:
Заработок на просмотре рекламы
Заработок для новичков
Как сделать и сохранить скриншот экрана на Windows
Advego заработок в Интернете
Previous considerations
Before knowing the extrapolation of all the keyboard commands, we must remember that there are many differences between a computer (either fixed or portable) with Windows to another with macOS. Not only in the field of software where it is quite evident, but also with respect to hardware. Next, we will talk about these differences that you will always have to take into account when making shortcuts.
Can it be done with any keyboard?
One of the big differences between a Windows PC and a Mac is the keyboard. Although it may seem that the distribution is the same within the same market, such as Spanish, the truth is that there are some differences. The most important in this case is the presence of the “Command” key that is located on both sides of the space key. Obviously, this is a key that does not exist on a keyboard created for a Windows computer, which includes a button that has the software logo drawn on it. It can be said that Command is the substitute for this Windows key for many of the keyboard shortcuts that we will be able to find in both operating systems. But this is also a great adaptation that a person who is going to change their operating system will have to make, since they will also have to get used to a completely different keyboard.

But this is not the only difference that can be found. If you use Windows daily, surely you have used the ‘Alt’ key on numerous occasions. It is one of the great protagonists in any keyboard along with Control to make use of the different commands that you will need to work comfortably. In this case, on Mac it will be found as the Option key. In the end, the operation is the same and you will only have to adapt to a change in the terminology itself. What will not change in this migration is the Control key, since it will always be practically in the same place.
Basic Key Assignment
As we have mentioned before, when migrating between operating systems you are going to have to carry out a learning exercise in order to get used to this new type of format that you are going to be able to use. Obviously, keep in mind that this exercise can be more or less fast. Everything will always depend on the individual capacity of each person, although the truth is that based on personal experience it is something to which one adapts quickly.
Remember that Mac allows you to make a key assignment . This means that you will be able to fully customize your keyboard , choosing the functions of each key. Although, if this is something that you did not have previously configured in Windows, we do not recommend it in Mac. Without a doubt, in the end, you will adapt to the new design that the keyboard of the computer you just acquired has. Likewise, the native assignment is left below:
- The Alt key on Windows corresponds to Option on Mac.
- The Windows key corresponds to Command on the Mac.
- Start and End: Corresponds to Command + Left Arrow or Right Arrow and Command + Left or Right Arrow on Mac.

Obviously, there are many other commands that are available for your enjoyment, but these are the most basic that you will be able to find on your device.
Вместо заключения
Как видно из вышеизложенного материала, переход во вселенную Apple — это не только удовольствие, но и ряд сложностей, связанных с определенными привычками, которые мы обретаем в ходе использования компьютера. Мириться с ними и настраивать компьютер или отказаться и вернуться к Microsoft — решать покупателю, но за трудностями всегда следует вознаграждение, а в случае с Mac оно того действительно стоит. Тем более, переборов привычку, можно понять, что сочетания клавиш логичнее и удобнее, чем в Windows, а клавиша Option на Mac действительно волшебная и пресловутый Alt ей не чета.
Conclusion
To sum up, Where command in DOS of windows and Get-Command in PowerShell are the alternatives to which command in windows.


