Terminal commands?

Hello

Anyone know of a good or all useful Terminal commands repo?

Thank you!

You want to learn unix or type just blindly stuff in the Terminal?

Tags: Mac OS & System Software

Similar Questions

  • Terminal command to change the wallpaper does not

    I recently did a program that changed my desktop wallpaper according to the time of day.  He worked by entering a terminal command that looked like something like this:

    osascript-e ' tell application "Finder" to the image of the desktop value "/ path/to/file.jpg" as a POSIX file '

    It was working fine, until recently.  Now when I enter the command to define 'fichier.jpg', it works, and defines it as my desktop background as it is supposed to, but when I replace it with a new image of the same name and path, the command affects my wallpaper the original image of the same name.  When I went to change my wallpaper in system preferences, it showed in my new defined image preview area, even if it wasn't.  I'm doing something wrong or is there a problem with my Mac?

    osascript-e ' tell application "Finder" to set the image of the Office of POSIX file "/ path/to/image.jpg" '

    On OS X 10.11.6 and by operating in the Terminal, the foregoing has changed the image of the office immediately whenever it is run with a new image.

  • Where do you find the descriptions of the Terminal command options?

    Hello everyone

    OS X Terminal displays help if you add the option - help and introduction to the Shell script gives details of each Terminal command I find useful:

    https://developer.Apple.com/library/Mac/documentation/opensource/conceptual/Shel lScripting/CommandLInePrimer/line of command...

    However, none of them tells you the function of each of the options such as '-f' and '-I ' to 'rm' command

    If someone knows where are the descriptions of the command options, please send the url?

    Thank you in advance,

    E

    Type in 'man' followed the order in question, without the quotes or options. The index can be found by clicking here.

    (143223)

  • Delete the startup alert | Terminal command

    Hi Gang OSX,

    I'm on an iMax and often stop manually.

    What is terminal command to remove the "Shut Down" alert that appears when I restart?

    It's boring.

    Thank you is advanced, Charles

    Charles,

    Please post a screenshot of the senior command you speak.

  • How can I see what changes I made to the terminal command?

    I don't know what changes I made to the terminal command and I want to see if I can cancel an any of them because I have inadvertently artificial virus. I use the latest version of Mac OS X (10.11.3) on a Macbook Pro of the retina. I have reviewed the reset of the computer to the factory settings, but I don't know if that will clear the terminal the previous commands. Thank you in advance!

    Terminal Server can 'remember' commands you have issued. Open Terminal and type this command

    history

    What you get is a complete list of commands executed when using Terminal. If you don't you probably erased from history or abnormally closed the Terminal application.

    Alternatively, you can paste this list here so that we can analyze what you were doing.

  • Cannot run most of the terminal commands

    Recently the Terminal application on my iMac has been upward. When I opened the app, it displays the message: "-bash: touch: command not found". I am more able to run ruby of the IRB of terminal or access. Even simple commands such as ls train "-bash: ls: command not found". The terminal command, only that I was able to run so far is pwd. This iMac is relatively new to me. I bought at the flea market in December, upgraded the RAM and restored using Migration assistant. I have no idea about the competence of this iMac until I bought it. Yesterday I installed the El Capitan update 10.11.3. Since I tried to use this computer for learning development ruby, now that it seems to be useless for this purpose.

    If you bought it second hand, please see this document.

    What to do before you sell or give away your Mac - Apple Support

  • Is it Possible terminal command via ExtendScript toolkit?

    Hello world!

    I need to use the terminal command using javascript on extendscript.

    But, I will automate the script on macintosh and windows operating systems.

    Is it possible to use both in the same code?

    For example, I have will automate the pdffonts names in pdf files. so, I use the command on a mac '/ Users/user/Desktop/fontlist/pdf pdffonts' which gives the PDF font names. It works on manually. Is it possible to use the code for mac and windows on extendscript toolkit?  or separately give a code!

    Thank you

    Peter.

    I don't know how it works on Mac, but with Windows, you can have your orders in a batch file, and then run that ExtendScript. For example, here's a script that creates a batch file and then execute it:

    var bat = File ("~\\temp.bat");
    bat.open ("w");
    bat.writeln ('start Notepad.exe "C:\\DATA\\Scripts\\results.log"');
    bat.writeln ('quit');
    bat.close ();
    bat.execute (); // This is what runs the batch file (like a double-click on it in Windows Explorer).
    

    You can detect the operating system that is running the script using $.os. On my system

    alert ($.os);
    

    Displays "64-7-Windows 6.1 Service Pack 1 (32-bit emulation)". -Rick

  • Basic Terminal commands does not

    I'm trying to run the command createmediainstall (https://support.apple.com/en-gb/HT201372) on the terminal in recovery mode to install a copy mounted Yosemite from a USB, it says currently it does not recognize the command I noticed as he does not recognize sudo, basic as the date commands etc seem to work though, no idea why?

    Currently (tent and failing) to run El Capitan 2011 Macbook Pro

    Hello CrookedCartoon,

    Your user account may have a problem with paths or something. Create a new administrator account and it try it. For something like the commands from the Terminal, it is very easy to use copy / paste to post the details here in the forum all exactly what you try and exactly what the result is.

  • The terminal commands/help shell initialization files

    A few days ago, I opened the terminal on my MBP and tried the help command. Here, I tried ls help. I was expecting to get help for the command ls, but I got this instead:

    LS: help: no such file or directory

    I know that ls , it was just try random commands on my terminal. However, after some searching on Google I realized that some people had similar problems with some commands doesn't work is not on the terminal. And most of the problems appear to be related to the shell initialization files.

    How can I fix this?

    It was just try random orders

    Orders randomly won't work. You must enter commands that make sense. "ls help" is a command to list a file named 'help' in the current directory. Since there is no file, all you get is an error message. If you want to learn how to use the shell, I suggest you only begin by reading a book or a tutorial online. I don't have a specific recommendation.

  • How can I cancel this terminal command?

    I entered the following command in a terminal with the understanding that it would help me stop MacKeeper ads popping up because it looks like youtube I was using safari but on a Windows System. Who had the unexpected result of not being able to use whatsapp web (and I guess other things) cause he told me I should upgrade to Safari or use a different browser (it has not before and the change was immediate, it's obviously my fault enter the command...).

    : write com.apple.Safari CustomUserAgent «\"Mozilla/5.0 (Windows»; (AppleWebKit/534.57.2 Windows NT 6.1) (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2\»»

    If it's any help, I'm posting my last terminal interference...

    PEPEDJ: ~ JDarJul$ by default write com.apple.Safari CustomUserAgent «\"Mozilla/5.0 (Windows»; (AppleWebKit/534.57.2 Windows NT 6.1) (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2\»»

    PEPEDJ: ~ JDarJul$

    PEPEDJ: ~ JDarJul$

    PEPEDJ: ~ JDarJul$ by default write com.apple.Safari CustomUserAgent «\"Mozilla/5.0 (Windows»; (AppleWebKit/534.57.2 Windows NT 6.1) (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2\»»

    PEPEDJ: ~ JDarJul$ by default write com.apple.Safari CustomUserAgent «\"Mozilla/5.0 (Windows»; AppleWebKit/534.57.2 Windows NT 6.1) (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2\

    >

    > write com.apple.Safari CustomUserAgent «\"Mozilla/5.0 (Windows»; AppleWebKit/534.57.2 Windows NT 6.1) (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2

    -bash: near syntax error unexpected token ' (')

    PEPEDJ: ~ JDarJul$ by default write com.apple.Safari CustomUserAgent «\"Mozilla/5.0 (Windows»; (AppleWebKit/534.57.2 Windows NT 6.1) (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2\.

    > "

    PEPEDJ: ~ JDarJul$ by default write com.apple.Safari CustomUserAgent «\"Mozilla/5.0 (Windows»; (AppleWebKit/534.57.2 Windows NT 6.1) (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2\»»

    PEPEDJ: ~ JDarJul$

    [Refitted]

    Last login: Friday, 18 dec 01:54:40 on ttys000

    PEPEDJ: ~ JDarJul$ #defaults write com.apple.Safari CustomUserAgent «\"Mozilla/5.0 (Windows»; (AppleWebKit/534.57.2 Windows NT 6.1) (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2\»»

    PEPEDJ: ~ JDarJul$

    PEPEDJ: ~ JDarJul$

    [Refitted]

    Last login: Friday, 18 dec 01:57:22 on ttys000

    PEPEDJ: ~ JDarJul$

    [Refitted]

    Last login: Friday, 18 dec 02:00:51 on ttys000

    PEPEDJ: ~ JDarJul$ by default write com.apple.Safari CustomUserAgent «\"Mozilla/5.0 (Windows»; Windows NT 6.1) AppleWebKit/534.57.2 (K

    > defaults delete com.apple.Safari CustomUserAgent «\"Mozilla/5.0 (Windows»; AppleWebKit/534.57.2 Windows NT 6.1) (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2\

    -bash: near syntax error unexpected token ' (')

    PEPEDJ: ~ JDarJul$

    PEPEDJ: ~ JDarJul$ by default delete com.apple.Safari CustomUserAgent «\"Mozilla/5.0 (Windows»; AppleWebKit/534.57.2 Windows NT 6.1) (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2\

    >

    > s

    >

    >

    > defaults delete com.apple.Safari CustomUserAgent «\"Mozilla/5.0 (Windows»; (AppleWebKit/534.57.2 Windows NT 6.1) (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2\»»

    -bash: near syntax error unexpected token ' (')

    PEPEDJ: ~ JDarJul$

    Run the following:

    defaults delete com.apple.Safari CustomUserAgent

    When you delete a plist entry, you don't need to provide a value for it.

    (137294)

  • Awk on terminal command

    Hello

    I'm new to the mac terminal. I'm doing an awk command that runs through a series of files .txt for a specific word "Deet". Because the files contain this word several times, I want the command to find the last word "Deet" and enter the name of the file and the word. How can I write this code? Help, please?

    Usually, I stick to what is installed with OS X. This example of awk uses GNU awk (gawk) and I installed homebrew (infusion) package manager on my OS X El Capitan and then used infusion install gawk to to put in usr.

    Although awk on OS X will take the ENDFILE syntax without error, it does nothing when the end of an individual file is reached. It works fine in gawk.

    This is the awk script that you run in the Terminal and provide files *.txt on the command line. It will treat each line in the files looking for Deet, and when it reaches the end of the given file (ENDFILE), it will display the last captured DEET and the name of the current file. I called the following script deet.awk, and you run as:

    ./DEET.awk *.txt

    #! / usr/local/bin/gawk f

    #

    # capture and the last game for word in its print file

    function usage()

    {

    printf "use: %s *.» txt\n', ENVIRONMENT ["_"]

    }

    BEGIN {}

    If (ARGC< 2)="">

    usage()

    Output 1

    }

    }

    /DEET/ {match ($0, / (Deet) /, z); a = z [1]; b = FILE name}

    ENDFILE {printf "% s\t%s\n", a, b}

    END {exit}

    Output:

    Odin: ~/awkism$./deet.awk *.txt

    Test10.txt DEET

    Test25.txt DEET

    Test30.txt DEET

    Test45.txt DEET

  • Terminal cd command does not properly

    I use to try to direct me to a subfolder, and when I do, I first use the 'ls' command to list the contents of the directory that I'm terminal. Next I use the command "cd" followed by a space and the name of the following folder or subfolder I would go in next. All this worked fine until I came across a folder, I called 'Russian project '. When I type "cd Russian project" I am told by terminal which "-bash: cd: Russia: no such file or directory". This is simply not true. I see in my viewfinder clear as day, I can even do an ls on the containing folder and it's there. How can I fixed terminal then he will see what is there?

    Cannot have spaces in the terminal commands. Try the Russian\ cd projects / or cd "Russian projects.

  • How to run commands from the Terminal from the Finder?

    I would ask a series of Terminal commands in a file, then run the commands by double-clicking on the file in the Finder.  I found a number of sources on how to do on the internet, but most include comments from other users by saying: "this has not worked for me.  I have not found a definitive 'it's how

    I created a test file, use TextEdit, named test.commandand saved to my desktop.  The file contains these commands:

    ! / bin/sh

    chmod + x ~/Desktop/test.command

    echo 'Hi. ' here

    echo 'Hi' once again

    When I double-click the file, however, it sometimes just opened in the Finder.  Other times, I get an error message saying I don't have permission to run the file.  I thought that the chmod command was to manage the authorization, but maybe I'm not using it correctly.

    Can anyone help?

    #! / bin/sh

    You must # follow-up by the! as the very first 2 characters of the file.

    And as bash is the default shell, you should probably actually tell

    #! / bin/bash

    The chmod + x command should be performed after you have created the file test.command, not inside her.

    Another way to run shell commands is via Automator-> run the Shell Script

    Automator has no need to open a Terminal Services session to process orders.  But if you want to have the command display something, it might be simpler to use a .command file, although there are ways to view things in an Automator app as well.

  • Ready NAS 4220 command terminal to disabled checkbox "allow instant access."

    I have a temp 4220 readynas as a file server, joined an ad. 6.2.4 current firmware

    There is also a file indexing on-site 24/7 running. It indexes action 4.

    I have a junior administrator who will recover the files deleted using the "snapshot" function

    The issue is the 'allow instant access' remains on by accident. This causes the indexing of file index all snapshots. This pushes the index to 60 + GB in size. It will grow if big, that it stops new classes of indexing files. If it not to index the snapshots, the database will be around 4 GB.

    I would like a cron job to disable the 'allow the snapshot' nightly at 02:00.

    I can't find an online resource that gives enough details on the function of snapshot except how to delete snapshots. I want to deactivate access according to a schedule and keep the snapshot running.

    Garet

    Thanks for looking into this for me.

    I thought that it might be a terminal command to do this.

    Garet

  • What is the best terminal codes to rebuild spotlight in the Sierra of MacOS?

    What is the best terminal codes to rebuild spotlight in the Sierra of MacOS?

    The recommended method for re-index/reconstruction is to open Spotlight preferences panel in system preferences, click on privacy. Now add the drive that you want to re - index to privacy window. Now delete this same player of the Privacy window, and it will now be indexed/rebuilt. No necessary terminal command.

Maybe you are looking for

  • iPad Pro 12.9 "screen darker when compared to Pro 9.7" iPad and iPad 2 Air

    Comparing the screens on the Apple Store, I noticed every 12.9 "Pros on display screens faded compared to the new 9.7" iPad 2 Air and my own iPhone Pros 6 Plus. I made your real was turned off and all the display settings are equal. I compared using

  • template controls

    Hello I am looking for an option as a model in C++ where I create a template control Let's say ring, use it in a VI and call this VI with different rings (rings with different entries). While I tried on my own path, but do not get the result. I hope

  • Microsoft paint is missing

    I bought a new computer that does not come with paint, where can I download it from?

  • PowerConnect 6224 VLAN Routing, unable to connect out of VLAN but able to connect by entering.

    To set up a new VIRTUAL local network to separate the common workstation network and obtain new DHCP scope, I had a few questions and found advice in the post of http://en.community.dell.com/support-forums/network-switches/f/866/t/19370806.aspx?PageI

  • Play videos Youtube Webworks

    Hi developer team Webworks I would like to ask how to read the youtube video on webworks app? I try this way html file Object width = "200" height = "150" style = "" border: dotted 1px white ' type = ' application/x-shockwave-flash' "data ="http://ww