How to open a folder in Terminal

Folks
Sorry, but I'm 'way out of my depth dealing with unix, but I know it's mighty interesting, and I just wish I had time to learn it, but...! Here's my need:
My Trash is so full it won't open just by mouse click! I need to check it before I Empty Trash. What is the command/string I need to open the folder, please?
Anybody help me, please?
Regards
Roy

You can actually, should you desire a more GUI experience, drag-and-drop a folder onto Terminal.app, which will accomplish the same task as Unix's cd.
That is not correct.
Dragging a folder to a terminal window is in no way related to cd.
All that happens is that the path to that folder is written out, as if you'd typed it.
This does not cd to that directory, it doesn't even imply you will cd to that directory after pressing return (unless you manually typed cd before you dragged the folder to the terminal, but the cd is entirely up to you - you might prefer to ls or even rmdir that directory, which are just as valid uses for the drag-and-drop).

Similar Messages

  • I do not know how to open a folder, file !

    Hi  everyone,
    I do not know how to open a folder, file or
    a JavaScript  program in photoshop cs4?
    can you tell me how to proceed
    Thank you

    thank zhpingw
    the script not function unfortunately
    I had to go  through to have a flash file. swf
    I put in a  url link
    file. swf I was put in the palette and  its works!
    Download This file tutoweb. link . swf
    requete  content  for Google find tuto a Photoshop !
    Warning you change to script Google.fr  for Google.uk  in file .fla
    Place to swf in your palet of configurator
    Enjoy
    http://rapidshare.com/files/390041665/Flash_CS4.rar

  • How To Open A Folder of native system

    Hello Frnds can any body guides me how to open a folder of my system.actually i am using adobe air 2.0 for making a simple application in which i send and recived files.I simply uses File Class for extarct the nativepath of file.now i have path where my downloaded file stored.so Please tell me how to open the file or File Containg folder similary sevral aother web application does.
    Thanks In Advance
        Vineet Osho

    For opening the file itself, AIR 2.0 gives you a method in the File class called File.openWithDefaultApplication():
    openWithDefaultApplication
    method
    public function openWithDefaultApplication():void
    Language Version:
    ActionScript 3.0
    Runtime Versions:
    AIR 2
    Opens the file in the application registered by the operating system to open this file type
    The method description goes onto to talk about restrictions on file types in different operating systems.
    As far as opening a directory and performing some action on its contents, you can use the method File.getDirectoryListing(). This returns an array of File objects. You can test each File object with the isDirectory property, if you are interested in finding and dealing with sub-directories.
    Bill

  • Urgent... how to open particular folder by using file tag

    Hi,
    I want to select a particular folder using file browsing option in html. why i want this is : i have to update the resumes located in a particular folder. so every time i am opening that folder which is a subfolder.
    ex: c:\dir1\dir2\dir3\Resumes
    Eveevry time , i have to go to C -> dir1->dir2-->dir3 then Reusmes
    what i need is when i click the browsing button, i want to get the Resumes folder directly. Is there any option to do that one by setting value to file tag.
    thanks in advance
    my mail id [email protected]

    Hi venkatanarayanareddy (if that is your real name),
    You say you want to use file browsing option in html, which makes me guess this functionality is through a web page. Can you give us a bit more information about how this works as it's not abundantly clear how it relates to Java (JSP?).
    On another note (and I woke in customarily pedantic mood this morning), there's no need to post your e-mail address since [in the name of sharing the knowledge and not keeping answers to questions secret between the questioner and respondant] you will find responses posted here in the forum.
    Chris.

  • Urgent.. How to open Particular folder direcly using File Browse tag

    Hi,
    I want to select a particular folder using file browsing option in html. why i want this is : i have to update the resumes located in a particular folder. so every time i am opening that folder which is a subfolder.
    ex: c:\dir1\dir2\dir3\Resumes
    Eveevry time , i have to go to C -> dir1->dir2-->dir3 then Reusmes
    what i need is when i click the browsing button, i want to get the Resumes folder directly. Is there any option to do that one by setting value to file tag.
    thanks in advance

    Hi venkatanarayanareddy (if that is your real name),
    You say you want to use file browsing option in html, which makes me guess this functionality is through a web page. Can you give us a bit more information about how this works as it's not abundantly clear how it relates to Java (JSP?).
    On another note (and I woke in customarily pedantic mood this morning), there's no need to post your e-mail address since [in the name of sharing the knowledge and not keeping answers to questions secret between the questioner and respondant] you will find responses posted here in the forum.
    Chris.

  • How To Open Alias File From Terminal

    I am trying to write a script where I can tell it to open an Alias. I mounted a network drive and created an alias so when it is not mounted, I can double click it and it will mount. I need the script to call that alias and mount it. I would just use mount afp command but since our machines are on a Windows domain we run into errors. Anyone know how to call an alias from terminal?

    Did you try
    open path/to/alias

  • How to open a folder using Actionscript 3.0

    Hi,
    I have been trying for about a day to get this to work, but nothing seems to, so i'm finally going to ask.
    So far, code wise, i have this:
         open_btn.addEventListener(MouseEvent.CLICK, OpenButtonHandler);
         function OpenButtonHandler(event:MouseEvent):void
    From there, what code gets flash to literally open up a folder such as My Documents? The end use of this code will be for a CD, whereby the flash .exe file will call up folders from the disc through clicking buttons. Also, please make me awear of under what situations the code may not work. At the moment, i am writting the .exe file to the desktop, and trying to open a folder on my desktop through the application.
    Often times, everything i have tried so far, either causes Syntax Errors or no errors, but just doesn't work.
    Thanks,
    Ricky
    EDIT:
    Primarily in Windows, but if you know the Mac way too, that could be useful.

    Is there no way to get buttons to open up explorer folders specified? It seems people are managing it somehow, but i can't do it. Others aprantly can do it using this code:
         on(release){
          getURL("flash",_black);
    , but that's actionscript 2, not 3 which i am using. Surely actionscript 3 can do this and possibly even better seeing as it is a higher version?
    I also found another bit of code that was like this:
         fscommand("exec","explorer\dirname");
    ,but again that didnt work. However, in another way it did because flash reported no errors when it was run, but nothing happened when the button was clicked.
    The only other thing i tried was this:
         var request:URLRequest=new URLRequest("C:\\");
        navigateToURL(request);
    The problem with that was that it tried to open the internet as expected unfortinatly, not windows explorer to open the folder C:\\.
    Directing users to the appropiate locations on the disk wasn't really what i needed thanks for the suggestion though.
    EDIT:
    That last idea worked, sorry, but it opened in the default web-browser instead of using explorer, so i'm half way there. Is it possible to tell it what application to use to open the directory, so that way i can specify explorer?

  • How to open a folder inside a folder, without closing the first?

    I can't find a way to open a sub-folder, inside a mainfolder, without closing the main folder.
    What's even worse, if you hold "option" or "command,"  (old OS9 muscle memory kicking in) it opens the new folder but wipes-out the ability to use the back button!  So then if you needed that main folder open, and it's deep inside some chain, you have to go searching for it again.
    So, is there any fix for this?
    <Edited by Host>

    Problems such as yours are sometimes caused by files that should belong to you but are locked or have wrong permissions. This procedure will check for such files. It makes no changes and therefore will not, in itself, solve your problem.
    First, empty the Trash, if possible.
    Triple-click anywhere in the line below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 -o -acl \) 2> /dev/null | wc -l
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
    The output of this command, on a line directly below what you entered, will be a number such as "41." Please post it in a reply.

  • How do I open a folder and update web page on different computer.

    Hi All,
    I started my iweb page on my powermac at work and have uploaded the pages online. I have saved the page to a folder and now want to work on the updates at home on my powerbook and can't seen to figure out how to open the folder. I've used QuickTime VR photos and the powermac at work is struggling and is sluggish so that's why I want to use my powerbook. In the file column I see "Publish to .Mac, All to.Mac, Folder but no open folder. Help
    Thanks
    Mark

    in order to update a web page on a different computer you're going to have to move the entire site over to the other computer. to do so you need to move the "domain" file that iweb uses.
    The “domain” file is hidden away in <home>/Library/Application Support/iWeb/domain.sites.
    unless you've already moved it to another location on your hard drive.
    there's more detailed info in this article:
    http://docs.info.apple.com/article.html?artnum=303045
    once you update/change the page you want to update and publish, you'll have to move that domain file back to the other computer if you want to use the 'first' computer again to edit your site. if you just want to continue using the 'second' computer then you don't need to move the file back (obviously)
    hope this helps.

  • How to open a terminal window in a path currently visible in the Finder?

    I often need to open a terminal window with the current visible folder (a long, deep path) as the working directory.
    In Windows I used to have the little "Open command window here..." hack available in the context menu in Explorer.
    How can I achieve the same on OS X to avoid tediously typing the path?

    open a finder window and navigate to one-level above
    this visible folder.
    open a terminal window.
    drag the folder of interest from the finder window
    into the terminal window. now you see the whole path
    to that folder has been typed out for you....
    so, if you wanted to 'cd' into that folder in
    terminal, you'd type cd, then a space, into the
    terminal window, then drag that folder in there from
    the finder, then hit return.... viola!
    If the folder you want is already open, you can drag the icon at the top of the Finder window. You don't have to go one level up.

  • Opening a folder with an application in one click, and automating Terminal

    A forum member kindly recommended I move a question from 'Mac OS X Leopard' to this sub-forum as it was more appropriate to Unix:
    Firstly, is it possible to create a desktop/dock icon (or perhaps a Safari or FireFox bookmark) that opens a folder with a certain application? I'm doing a lot of web development and hoping to create handy buttons for opening up entire folders (Ruby on Rails projects) with only one click. At the moment, I have to find the folder and drag it to the textmate icon; if I had a 'open in textmate' button, that would make my work so much quicker, as I'm often changing between projects. It would be even better if I could have the button as a bookmark in my browser (where I spend most of my time).
    Secondly (probably related to the first question), is it possible to automate a process I follow every time I open up a Ruby on Rails project in Terminal (?);
    1. Load Terminal by clicking on the icon in the dock
    2. 'cd sites/rubyonrailsapp' (where 'rubyonrailsapp' is the rails application I want to load)
    3. 'mate .' (opens the entire /rubyonrails/ folder in TextMate)
    4. 'CMD + T' (to open up a new Terminal tab)
    5. 'gitk --all &' (to open up the Wish version control interface for the rails application)
    6. 'autotest' (to runs the tests in the rails application)
    7. 'CMD + T' (to open up another new Terminal tab, ready for me to use)
    If I could follow those steps with only one click, that would be amazing, so any suggestions are much appreciated (I just realised how many times-per-day I'm typing these commands).
    Cheers

    you can try this applescript. just copy it into the Script Editor and save it (1) as a script application that you can double-click, or (2) as a script that you can run from the script menu or quickkeys or etc. may need some tweaking...
    <pre class="jive-pre">tell application "Terminal"
    set cmd to "cd sites/rubyonrailsapp; mate ."
    do script cmd
    activate
    end tell
    tell application "System Events"
    keystroke "t" using command down
    end tell
    tell application "Terminal"
    set cmd to "gitk --all & autotest;"
    do script cmd
    activate
    end tell
    tell application "System Events"
    keystroke "t" using command down
    end tell</pre>
    to solve your other question, you'll probably need to script textmate. something like:
    <pre class="jive-pre">tell application "TextMate"
    open alias "path:to:folder"
    end tell</pre>
    I don't have textmate to test it on, however.
    sorry it's not a unix solution, but the task you're trying to accomplish fits better with applescript.
    Message was edited by: twtwtw - sorry, wrong quote style...

  • If I open a folder in Finder list it hides the original list. How do I fix this?

    If I open a drive in the  Finder and (using the triangles) I can show folders, subfolders and files.
    Business as usual.
    But in Mavericks, if I open a folder from that list, it hides the list that I opened it from.
    I used to be able to open a folder and have the original folders and files still there.
    And the opened folder. 
    Now the original disappears and I have to press "back,"
    I want both items open, like in 10.6
    Does anyone know how to fix this?

    This is the resume feature of Lion. The last state of the application is saved when quitting (i.e last pictures viewed in Preview, last videos viewed in Quicktime etc).
    You can switch it off for Preview by copy and pasting the following in to the terminal application
    defaults write com.apple.Preview NSQuitAlwaysKeepsWindows -bool false

  • I am trying to download photoshop presets from online but can't seem to figure out how to open them in photoshop. They download sucessfuly and then goes to my download folder on my computer, from there I double click on the file and photoshop opens and th

    I am trying to download photoshop presets from online but can't seem to figure out how to open them in photoshop. They download sucessfuly and then goes to my download folder on my computer, from there I double click on the file and photoshop opens and then nothing happens, any ideas? I am using a PC

    This video is a great step by step tutorial.
    Photoshop: How to Download & Install New Brushes & other Presets - YouTube
    Gene

  • How to open a new folder then select a file?

    when we use a mp3 player(desktop app).we can view the song in a new folder after we right click on it and choose view.how to do it on air?
    all i can do is just like this:
    var file:File = new File();
                                            file.nativePath=songArray[rolloverItemIndex].url
                                            file=file.parent
                                            file.canonicalize()
                                            file.openWithDefaultApplication();
    just open new folder but can't auto selecte the file that i want.

    Check this code it will work
    try
    File f=new File("NewDocument1.doc");
    FileOutputStream fos=new FileOutputStream(f);
    FileInputStream fis = new FileInputStream(f);
    FileChannel fc = fis.getChannel();
    byte[] data = new byte[(int)(fc.size())];
    IWDCachedWebResource cachedWebResource=WDWebResource.getWebResource(data,WDWebResourceType.DOC);
    cachedWebResource.setResourceName("NewDocument1.doc");
    String url=cachedWebResource.getURL();
    IWDWindow window=wdComponentAPI.getWindowManager().createExternalWindow(url,"cmps",true);
    window.open();
    catch(Exception ioe)
    wdComponentAPI.getMessageManager().reportSuccess(ioe.getMessage());
    wdComponentAPI.getMessageManager().reportException("Exception in Method cmps :::"+ioe.getMessage(),false);

  • How to open a "published folder"?

    I've just upgraded to 08, I've created a site for work so am not using my .mac account. I published to a folder on my desktop,no problem, uploaded to the web no problem. It all works, EXCEPT. when I restarted iweb it asked me for a domain name as as none was associated or something. So I pointed it towards where it was orginally on idisk. NOW when i open iweb, my site is no longer complete, all the photo's are missing from the albums.
    So, figuring i've done something wrong, is it possible to open my published folder in iweb?
    And separately, can someone point me towards a tutorial on "Domains" I need to have a number and don't know how to manage them (or really what the difference between a "site" and a "domain")

    iWeb stores the data in a Domain.sites2 file whose default location is shown here....
    http://www.iwebformusicians.com/iWeb/iWeb-Tips.html
    See this page for how to open the library folder and a Domain file when using Mountain Lion...
    http://www.iwebformusicians.com/iWeb/mountain-lion.html

Maybe you are looking for

  • Block google search logging in safari

    Does anyone know how to block google from logging my search history while using safari? I know that its very easy to do so if using firefox, but i prefer safari and would like to continue using it while at the same time not being tracked by google. I

  • Installing Oracle 8i on Windows Millenium

    Can anyone out there please help me? I tried installing Oracle 8i Enterprise edition on a PC but it wouldn't install as it kept on going back to the previous "Install/Deinstall" products screen. I tried it with Windows 98 and it worked first time. Ca

  • Why Georgia isn't on the listing of countries for payment ?

    Hello, Why Georgia isn't on the listing of countries for payment ? And how I can register my AmEx(Bank of Georgia) cart with georgian billing address? Thank you in advance, Regards, Message was edited by: badri sepashvili

  • OutOfMemory Exception in AdminServer

    Hello, we have several times OutOfMemory Exceptions in AdminServer. What are the recommend USER_MEM_ARGS to use aia? Currently we use the following configuration in setDomainEnv.sh: -Xms2048m -Xmx2048m -XX:PermSize=512m -XX:MaxPermSize=512m -XX:Appen

  • What is the maximum number of external harddrives?

    I've got about 1600 DVDs and I've started ripping them to an external hard drive (just my favorites) for viewing through iTunes and my AppleTV. Well, my wife thinks its wonderful and wants to put them all on the machine (comes to about 4Tbytes). Is t