aholicolz.blogg.se

Mac command line cheat sheet
Mac command line cheat sheet






CAB cabinet file gameData.cabĬompare the contents of two files ( file1.ext, file2.ext) and display non-matching linesĬompare the contents of two files ( file1.ext, file2.ext) and display non-matching items Robust copying of files and directories: by default, such copying only occurs if the source and destination differ in time stamps or file sizes.ĭecompresses the compressed. XCOPY is similar to COPY but with additional switches to specify the source and destination paths in detail.Ĭopy folders and subfolders of folder1 to folder2 \dest\hey.txt anywhere here.Ĭopy files and directory trees to another folder. Overwrite replace a file named hey.txt in a local folder src with another hey.txt in a local folder dest, both files sharing the same name. REN text.txt script.batRENAME text.txt script.bat

mac command line cheat sheet

CommandĬopy the file text.txt to a folder with the path C:\schoolwork Like Unix, cmd supports pipelines: you may pass the output of a command to the next one by sandwiching the pipe character “|” between both. The following commands are for managing and manipulating files.

mac command line cheat sheet

Show the directory structure of the folder “Program Files” on the disk C:\ĭisplay the names of the files in each folder in the directory structure of the C:\ driveĭisplay/set the attributes of the files in the current directory Show the directory structure of a disk/folder Move a file text.txt from one folder c:\f1 to another folder c:\f2Ĭreate a new folder called new_folder in the current directoryĭelete the folder called new_folder in the current directory List all file and folder names in the current working directory, sort them in reverse alphabetical order, and save the sorted output to a file ZtoA.txt: Sort the contents of C:\music\playlist.m3u line by line Take input from a source file/pipeline, sort its contents alphabetically (default: A to Z in reverse: Z to A), and display the output

mac command line cheat sheet mac command line cheat sheet

Navigate to the folder new_folder located in the current working directoryĬhange the current drive to D:\ and access the folder videos on it.ĭisplay files and folders in the current directoryĭisplay files and folders in the directory c:\apps\ĭisplay only files ( D: directories -: not)ĭisplay files and folders sorted alphabeticallyĭisplay files and folders sorted by file size from smallest to largestĭisplay files and folders sorted by file size from largest to smallestĭisplay only the names of files and folders in the current working directory Navigate to the parent directory of the current working directory CommandĬhange the current drive to the C:\ driveĬhange the current drive to the D:\ drive These commands help you view directories and move directories around.

  • Tmux Command Generator Directory Navigation.







  • Mac command line cheat sheet