Questions re using Terminal

A couple of quick questions.  If I have to reference a file name with spaces in it, e.g. "this file.wav" how do I account for the space so that it is read as one item rather than "this" and "file.wav"?
How to I move to the left without deleting everything I have typed past the point I need to go back to?
TIA

You can use quotes or a forward slash, e.g., "this file.wav" or this/ file.wav
I'm sure it's a typo, but actually you mean backslash, not forward slash.
this\ file.wav
Forward slash is the directory delimiter, whereas backslash is the escape character.
this/ file.wav would indicate the file " file.wav" in the 'this' directory.
You can also use certain control keys to move around the command line. For example, ctrl-a jumps to the beginning of a line, ctrl-e jumps to the end, ctrl-w deletes a word, ctrl-d deletes forward, plus many more.

Similar Messages

  • Using terminal to uninstall program

    I have instructions to uninstal a program using terminal commands...but it won't let me get to the directory were the uninstall program is:
    cd /Library/Application Support/SecurID
    It won't let me go to Application Support folder even though when I list files in the Library directory, it shows up?

    My question might not be clear....trying to get to Application Support folder using terminal and it won't let me.
    Macintosh-3:Library Melissa$ ls
    Acrobat User Data          Favorites                    Printers
    Address Book Plug-Ins          FontCollections                    PubSub
    Application Support Fonts                              Receipts
    Assistants                    Icons                              Recent Servers
    Audio                              Input Methods                    Safari
    Autosave Information          Internet Plug-Ins          Saved Searches
    Caches                              Keyboard Layouts          Screen Savers
    Calendars                    Keychains                    Sounds
    ColorPickers                    LaunchAgents                    Spelling
    ColorSync                    Logs                              Voices
    Colors                              Mail                              iMovie
    Compositions                    Mail Downloads                    iTunes
    Cookies                              PreferencePanes
    Documentation                    Preferences
    Macintosh-3:Library Melissa$ cd Application Support
    -bash: cd: Application: No such file or directory

  • How to use Terminal with KeySpan USB serial adaptor cable?

    I own a KeySpan model USA-19HS to use with our MacBookPro when working on clients networking equipment that require serial communication. I have used ZTerm with excellent luck, but it costs, and is yet another application that I dont really want. I would like to know if any one out there has exacing instructions on how to use Terminal with this adaptor. If I could write a file that had, say, the couple most common settings (9600-8-n-1, 57600-8-n-1, et cetera) that I could simply click on, to open a new Terminal window with those settings, then simply close that, and open a new window (apple+n) in order to get back to a default settings terminal window. All feedback is most appreciated.
    Thanks so much, Jason Sjobeck

    Hi, Jason. Welcome to the Discussions.
    You wrote: "All feedback is most appreciated."OK.
    1. Have you considered discussing this with Keyspan Support?
    2. Have you read the section "OSX has Terminal.app - why do I need ZTerm?" on the ZTerm Home Page? That seems to explain why one needs an app like ZTerm.
    3. A quick search of Keyspan's FAQ for your product and terminal doesn't yield much more than how to find the serial ports using Terminal.
    Likewise, this Google search also yields little, and variants of that search of such weren't particularly help either.
    It appears your inquiry seems to be a somewhat esoteric topic.
    4. Apparently, ZTerm X is a bit long in the tooth and there's no Universal Binary for it. It sounds, however, like you've tried it running on your MBP under Rosetta, yes?
    5. In researching alternatives to ZTerm for you, I note the followng:• The comment from "Reverb" on this page suggests C-Kermit or Kermit as a free alternative.
    • This tip on Mac OS X Hints cites Minicom as another option.6. You may want to try your question on the Unix Discussion.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • So I am trying to copy my hard drive "Macintosh HD" to an external hard drive, i want to use Terminal and have tried many ways. For example cp -r /Volumes/"Macintosh HD" /Volumes/"NO NAME". When i do it says No such file or directory. Ideas?

    So I am trying to copy my hard drive "Macintosh HD" to an external hard drive, i want to use Terminal and have tried many ways. For example cp -r /Volumes/"Macintosh HD" /Volumes/"NO NAME". When i do it says No such file or directory. Ideas?

    The reason that threadjacking is frowned on (as mentioned in the terms use which you can read by clicking the link to the right on this page) is for the most part a practical one:
    By starting your own thread your problem can get individual attention, focussed on your particular set of circumstances.
    By joining somebody else's thread it becomes tricky to answer more than one question at the same time, and can lead to confusion for both parties.
    So if you don't mind the minor inconvenience, please start your own thread (in the correct forum) so we can get to grips with your particular problem!

  • Using Terminal in Mac OSX to program and test java

    I bought a book on java and it says I should not use a JDK like Net Beans when first learning java.
    Right or wrong I would like to know how to use terminal to program and compile simple scripts.
    So my question is:
    How do you go about setting up the computer to use terminal to write and compile a java program? I know my Mac sees java in terminal because tells me Im running "version 1.5.0_07"
    I just need a link to some info on how to get started using Terminal for my command line with java.
    I think if I could get a path set up from the command line to my text file and have javac see it I would be in pretty good shape. At least for now.
    If I use a text saved plain text file (.java) how do I set up a path to it using javac from the command line?
    Where can I find or link to this kind of info?
    Macbook Pro Mac OS X (10.4.10)

    ayusman_dikshit wrote:
    Hi,
    seems like you have not tried out a few things.
    1. Set up the JAVA_HOME environment variable. (I assume you pretty much know it) the folder where java is installed.
    2. set up the environment variable to point to the bin folder inside the java installation folder.
    3. open up a console (it seems from your post you know it.), type java -version see the java version.
    4. type in javac, press enter: you should get the javac options.
    5. type in java, you should see the java options.
    Write your programs in a text editor, save it as somename.java.
    open a console, change to the directory containing the java file.
    type: javac somename.java <PRESS ENTER>
    you should get the compilation errors if any.
    if not
    type in: java somename.java
    Hope this helps.
    Regards,
    AyusmanStep 1 and 2 are generally not needed. Mac OS X comes with Java configured up and running right out of the box.

  • Using Terminal to program and test java.

    I bought a book on java and it says I should not use a JDK when first learning java.
    Right or wrong I would like to know how to use terminal to program and compile simple scripts.
    So my question is:
    How do you go about setting up the computer to use terminal to write and compile a java program?
    I know that’s pretty big question. I just need a link to some info on how to get started using terminal and java.
    If I use a text editor how do I set up a path to it using javac?
    Where can I find or link to this kind of info?

    David Bixler wrote:
    I bought a book on java and it says I should not use a JDK when first learning java.
    I think they mean IDE, considering that Java is the JDK. And I agree with that idea, not just for Java, but for any language.
    How do you go about setting up the computer to use terminal to write and compile a java program?
    There isn't anything to setup. Just run Terminal and type "vi hello.java" or "nano hello.java". To compile, type "javac hello.java".
    I know that’s pretty big question. I just need a link to some info on how to get started using terminal and java.
    That is not necessarily a big question, just fundamental. Try Google. It becomes second nature after a couple of decades so I don't really know where to tell you to look. People do tend to have a big list of links, hopefully they can contribute some.
    If I use a text editor how do I set up a path to it using javac?
    It should already be in your path.
    Where can I find or link to this kind of info?
    Try Google. People like it. You should find many pages similar to this.

  • Maintenance scripts never run?/using terminal

    Hi everyone! I am a very new Mac user and am finding at times it to be completely daunting.
    So my question/problem is this: I shut down my computer nightly, and from what I have researched, it does not perform maintenance. I did a Terminal command to find when my script last ran and received this:
    ls: /var/log/*.out: No such file or directory
    Does this mean the scripts have never run? Can I change the default times these are executed?
    I also went into the launchdaemons folder and it is empty. Does that mean anything?
    I could really used a dumb down version of any answers, I have never used a Mac before I bought one, and actually just learned of the Terminal program today. I have been to The X Lab and read through that site, and searched the forum here.
    Sorry for all the questions, I am so confused and terrified of damaging this computer.
    Thank you in advance!

    Welcome To  Discussions irach!
    Here is some additional info.
    As Kappy posted, if you turn the Mac off nightly, the Background Maintenance Tasks, are never run.
    These can also be run, using a Third-Party utility, or manually using Terminal, to run the CRON Commands.
    I use MacJanitor, when necessary.
    INSTRUCTIONS TO RUN CRON MANUAL COMMANDS
    Quit all applications/programs.
    Navigate to HD > Applications > Utilities.
    Double click on Terminal, to open.
    At the prompt, type:
    sudo periodic daily
    Press Return.
    Enter your Admin password when prompted, then press Return.
    This will execute the daily script that is sheduled to run every night.
    When completed, repeat this procedure, but change the command to:
    sudo periodic weekly
    This one rebuilds a database or two, and usually takes somewhat longer to complete. It is scheduled to run once a week.
    Repeat again, with command:
    sudo periodic monthly
    Or they can all be run in one pass, which is preferable, with this command:
    sudo periodic daily weekly monthly
    When the tasks complete, and return to the prompt, you may quit Terminal.
    Restart the Mac, and run Repair Permissions.
    TO REPAIR PERMISSIONS ON THE STARTUP DISK
    1.Open Disk Utility, located in Applications/Utilities, and select the startup disk in the left column.
    2.Click First Aid.
    3.Click Verify Disk Permissions to test permissions or Repair Disk Permissions to test and repair permissions. (I never "Verify". Just run "Repair".)
    Rerun RP, until the only messages reported, are listed here Spurious Permissions Errors Using: 10.4.x, authored by Michael Conniff.
    When "Repair Permissions" is complete. Quit "Disk Utility".
    ali b

  • How can I back up photos from iPhoto using terminal?

    Can I backup my photos from iPhoto using terminal or any other way(to a portable hard drive) as I have turned my laptop on and it has came to a screen giving me the option to back up from time machine, reinstall IOS or clean my drives, but neither are working so I believe I am going to have to erase my whole hard drive and potentially get a new one, but my only problem is that I haven't backed up my iPhoto images before so is there anyway I can do this?

    You are booted from Recovery Drive. Have you tried restarting so you boot normally?
    See these articles for using terminal to move
    http://apple.stackexchange.com/questions/80316/how-can-i-use-terminal-to-copy-al l-files-of-a-certain-type-from-a-failing-hard-d
    http://macmost.com/using-terminal-to-copy-files.html
    How do I move my Home folder to a separate hard drive using terminal.ff

  • Using terminal if permissions are refused

    ... this'll sound like a question 'how can I hack ?', but bear with me..
    My iBook was stolen out of my hand - literally - in the street last August. I don't have the means to buy a new one, so I use the iMacs in the University where I'm a student. The admin here is an a**hole. I saw him struggling one day with Terminal, and offered advice (I administer Solaris). He didn't take kindly to it. Since then, he's changed the permissions on all of the iMacs to stop me using Terminal. I used it for ssh and vim, that's all.
    His colleague (who is on vacation) changed the permissions back, but as soon as bozo saw that, he freaked, and banned me from using Terminal. I've e-mailed the head of the University to ask if I can use Terminal, but in the meantime, is there any way to open it, if the permissions have been set to prevent it?
    I repeat: I'm not trying to hack into one of these machines.
    Thanks.

    You can bypass the GUI and directly login to your
    shell if the login window is set to name and
    password. Type: >console and press return. Now enter
    your user name and password. Expect your friendly
    admin to go bonkers!
    I found another method.. in TextEdit, I do..
    do shell script "open /Applications/Utilities/Terminal.app"
    ... select that line and tell Mac-OSX to run it as a shell script. Sorted.

  • Is there a way to enable root user using terminal?

    is there a way to enable root user using terminal? i've tried in directory app but its not letting me log in under root since repairing permissions

    Hi
    If all you're seeing is bash-3.2# you are logged in as root. Type exit followed by a return. What do you see now?
    I think most of your questions could be answered with some judicious reading? Download as many admin manuals you can:
    http://www.apple.com/server/macosx/resources/
    Tony

  • How to download a file from the internet using terminal

    how to download a file from the internet using terminal
    does any one know how to download afile from the internet using the Terminal application?

    Use curl. Something like this:
    curl -O http://www.example.com/filename.zip
    For more info, type +man curl+.

  • Using terminal to change IP address

    One emac has gone odd. It refuses it acknowledge the server and it has locked its IP address off the network. It retains the server prefs and won't let me use the sys prefs to open network. (I work in a school - obviously I lock them 80 ).
    Can anyone tell me which file(s) I need to find on the client to change the IP address using terminal please. I've been looking at files in /etc where I think it should be but can't find anything.
    Muchos gracias,
    Danke viel mals
    Merci bien
    Thanks
    Mark

    Hi Candor,
    try man ifconfig !

  • After trying to change permissions on my computer so others on my network can access files, my external Hard Drive has a lock on it and I can't access files. I've tried repairing permissions, logging in under another Administrator account, using Terminal

    After trying to change permissions on my computer so others on my network can grab files, my external Hard Drive has a lock on it and I can't access files. I've tried repairing permissions, logging in under another Administrator account, using Terminal to fix the problem, downloaded BatChmod but nothing works… Any other suggestions? I have an Imac running OS10.6.8.

    There is suddenly a lock icon on my external backup drive!
    Custom Permissions

  • Installing Adobe Dreamweaver CS5.5 and PhotoShop 5.5 on windows 2008 R2 SP1 using Terminal services

    Hi All,
    Is it possible to install Adobe Dreamweaver CS5.5 and PhotoShop 5.5 on windows 2008 R2 SP1 using Terminal services. We are planning to use xenapp to publish these application.
    Please let me know if this is a supported environment.
    Regards
    Radhika

    As far as I know you will NOT be able to access OpenGL functionality through Terminal Services. as the OpenGL implementation provided in that environment is software, version 1.1 - not GPU-accelerated.
    I seem to recall there was a thread about a year ago here where someone was trying to do what you are asking.  I vaguely remember they were able to make it work, but I'm not sure.  You might try doing a search of this forum.
    -Noel

  • I have a question about using multiple ipads in our school.  Each of our teachers have a iPad and AppleTV in their classroom.  The issue is, with our classrooms so close in proximity to one another, is there a way to pair teacher

    I have a question about using multiple ipads in our school.  Each of our teachers have a iPad and AppleTV in their classroom.  The issue is, with our classrooms so close in proximity to one another, is there a way to pair teacher #1 iPad to its AppleTV without effecting/projecting onto the adjacent teachers #2 classroom AppleTV?

    Not as such.
    Give the AppleTV units unique names and also enable Airplay password in settings with unique passwords for each teacher.
    AC

Maybe you are looking for

  • Blackberry bridge folder and all icons can no longer be found

    I have my blackberry connected to my 9780 thru BB Bridge. The Bridge folder and its icons can not be found, however. I know that I'm connected (the number of bridge messages are showing up in the upper left corner of the screen, but no icons. Remote

  • Windows printing error 256

    Hello everyone, this is my configuration: MacBook Pro with OS X 10.4.10 and all the updates; a desktop with Windows XP on it; Canon MP810 as a printer and printfab as a driver. I have got a Windows printer and I've had the "error: 256" when I try to

  • Where are the explanatio​ns for the error codes in Envy 120 EWS Event Log

    I have been having trouble with the printer, and following diagnostic recommendations from a separate thread, have looked at the event log. I see a series of events, mostly 74899 Printer Event and 74741 Network Information. What I DO NOT SEE is any e

  • How do I get the birthday icon into the calendar

    How do I get the birthday icon into the calendar

  • Abap connectivity WSDL error

    Hi Expert, Do you have any idea for below attachment issue? we are getting error when Creating web service consumer SAP SOD: Create web service consumer (external web service) WSDL: https://xxxdev.service-now.com/u_charm.do?WSDL 1. goto SE80, package