Subscribe to our RSS news feed
AAPL 199.94 (-1.25)

> Forum Guidelines.

Welcome to the Genius Bar. Here's how this forum works:

1. Members are encouraged to make a guide that details something that they might have found troubling or challenging.
Chances are, if you've seen the same question asked over and over again, you should write a guide for it.

2. This is not the forum for asking questions. If you have a question about a thread that's already here, feel free to ask it.
Just don't start a thread for a specific question. Use the other forums here for that.

3. Posting links to off-site tutorials is not allowed.

4. That's it! Thanks for sharing your information with the rest of us. :)

To keep this forum clean this forum is moderated. You can post in existing topics but new ones will have to be approved before they show up.

4 Pages V  < 1 2 3 4 >  
Reply to this topic Start new topic
[INFO] Various Unix/Mac OS X terminal commands, And other info! :D
*
  • Group: Members
  • Posts: 35
  • Joined: 7-February 07
  • From: Guildford
  • Member No.: 82,764
I've found this side,it may help to you as well.

http://www.kernelthread.com/mac/osx/tools.html
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 41
  • Joined: 25-January 07
  • Member No.: 79,124
whats the command to view the cd/dvd drive via terminal? I need to copy some files from there to system folder.
PM Profile Card
Go to the top of the page
+ Quote Post
Group Icon
  • Group: Retired
  • Posts: 1,623
  • Joined: 13-February 06
  • From: Wandering the world over.
  • Member No.: 23,327
It's cd /Volumes/Name_Of_Your_CD where Name_Of_Your_CD is obviously the name of your cd. For example, if you have Warcraft III, its cd name is The Frozen Throne, and thus you would type cd /Volumes/"The Frozen Throne". If you want to see all the drives Mac currently sees, just go to /Volumes with cd /Volumes, then type ls, which will show you a list.
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 36
  • Joined: 7-September 06
  • Member No.: 54,711
This is not a terminal command but a little trick. sometimes i like the feel of just the console with no GUI present. You need to have it set so you have to type in your username and password.

In the username field enter:

>console

then press enter.. *poof* full screen terminal.

This post has been edited by soup4you2: Feb 16 2007, 04:32 PM
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 26
  • Joined: 10-December 06
  • Member No.: 67,840
to make an alias, just type
alias ll='ls -l'
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 1
  • Joined: 18-March 07
  • Member No.: 93,844
Found this browsing around for Terminal info.

It's a fun command that lets you set your preferred screensaver as your desktop:

/system/library/frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/contents/macos/screensaverengine -background
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 1
  • Joined: 20-March 07
  • Member No.: 94,256
Hi everyone, I would like to know if there is a way to enable the administrator account through the terminal since it is not active on the Imac? i don't have any passwords for the users who are currently on the imac so I can't login to any accounts.
PM Profile Card
Go to the top of the page
+ Quote Post
**
  • Group: Members
  • Posts: 61
  • Joined: 10-April 07
  • Member No.: 99,721
Greetings,

I'm *trying* to get OSX86 (10.4.8 patched w/SSE2 & SSE3) installed on my homebulit system. I've got some Linux/Unix experience (in other words, I can hurt myself in a shell) but am not familiar with the capabilities of the Single User mode when booting. [ie what I can and can't do in single user mode]

The Question: Can I mount the drives to the /Volumes/ folder the same way at command line shell the same way as *nix? (eg 'mount /dev/disk0 /Volumes/DVDrom')

Background: I can get OSX installed but it has issues on first boot with my PCIe card (specifically addressed in the Video Forum.) I think Callisto kexts will set me free, but I can't get the bloody files of the CD I burned them to as the only drive recognized in Single User ( '-s' at the boot options screen.) Sidenote: I can't get the safe mode '-x' to boot properly either as once its starts to bring up GUI (QE/CI) the machine halts. So I *think* I'm stuck with Single User mode until I get the Callisto drivers installed.

Thanks in advance.
S_L
PM Profile Card
Go to the top of the page
+ Quote Post
**
  • Group: Members
  • Posts: 70
  • Joined: 6-December 06
  • Member No.: 67,317
hy!


i only can start with pressing x while startup! what does it do? i found just descriptions like "force mac os startup"? and: is there any flag for that i could ad to the bootlistfile?!

thanks
triofour
PM Profile Card
Go to the top of the page
+ Quote Post
****
  • Group: Members
  • Posts: 248
  • Joined: 14-December 05
  • From: India
  • Member No.: 18,014
Will be usefull, if you can include few usefull kernel parameters. wink.gif
PM Profile Card
Go to the top of the page
+ Quote Post
***
  • Group: Members
  • Posts: 114
  • Joined: 24-August 07
  • From: Portugal
  • Member No.: 129,611
QUOTE (DaxTsurugi @ May 18 2006, 10:15 AM) *
Would anybody be willing to translate this info into other languages? That'd be neat if everyone could have this info, not just us English speakers. biggrin.gif


Hi this is my first post in the forum and since you asked im responding to you... im Portuguese and i would be glad to translate this guide to portuguese if you still want to.

Im a windows user but now im trying to get lost in the mac world ( tryed to install 10.4.6 on a acer aspire 5050 but it wasnt a good experience since i had problems with the kernel at booting up after the installation so im going for the 10.4.9 now to give it another try.)

So this guide is being a precious help in understanding how mac works and, like i said, it would be my pleasure to translate it for you in portuguese if you want. PM me or send me the full guide in PDF to hgserv@gmail.com

Best Regards

Hugo
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 18
  • Joined: 23-May 07
  • Member No.: 109,878
Not exactly a command, but saves a lot of work and helps on the guessing is the TAB-completion.

For instance: you want to type veryLongFilenameThatYouAlwaysMisspell.txt, just start typing, hit TAB, and it should complete it. It works with a few other things.
PM Profile Card
Go to the top of the page
+ Quote Post
***
  • Group: Members
  • Posts: 106
  • Joined: 17-October 05
  • Member No.: 13,429
Something good for use with Automator e.g. :-Run Shell Script
if [ -d /Volumes/DVD ]then hdiutil unmount /Volumes/DVDfi
What it will do is that 1- Check if directory /Volumes/DVD exist2- Then run the 'hdiutil unmount /Volumes/DVD'3- EndSave it as Application then add it to your startup itemsAnother tip to look for specific files and or directories...find /Users/user -name yourfilename -type f -print
find <location> -name <filename> -type f <file> d <directory> -print <to view>
Another thing you can do isfind location -name filename -type f -exec chmod -v 644 {} \;
find <location> -name <filename -type f <file> -exec <execute> chmod -v <verbose> 644 {} \;
Or you can combine some other functions...
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 5
  • Joined: 1-October 07
  • From: Pontoise, FRANCE( Near Paris )
  • Member No.: 139,073
QUOTE (DaxTsurugi @ May 18 2006, 11:15 AM) *
Would anybody be willing to translate this info into other languages? That'd be neat if everyone could have this info, not just us English speakers. biggrin.gif


Hi everybody, I'm new in this forum but i find it very interesting ^^
I can translate it in French if you want.I can do it for next week ( let's say for Wednesday because i'm a little busy this w-kend)
Reply me if it 's ok for you.
Bye ^^
PM Profile Card
Go to the top of the page
+ Quote Post
*******
  • Group: Members
  • Posts: 913
  • Joined: 21-July 07
  • From: socal
  • Member No.: 122,578
I feel super-dumb right now, but i cannot find com.apple.boot.plist. I looked in Library/Preferences/SystemConfiguration, and it wasn't there. I looked in spotlight (over the entire hard drive). I typed sudo find . -name "com.apple.boot.plist" into terminal and after about 10 minutes it finished with no output.

I am using 10.4.10 on an emac (G4 1.25GHz). Any ideas?
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 14
  • Joined: 14-October 06
  • Member No.: 60,101
Can you let us know the other kernel flags which can be used and what they do.
I have to use a -f flag while booting to enable Broadcom440x kernel ext to load
in Leopard.

With regards.
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 23
  • Joined: 20-December 07
  • Member No.: 164,328
DaxTsurugi
I have something I did not see on your list on the first page

CODE
$hdiutil burn filename.iso

or
CODE
$hdiutil burn -noburnverify filename.iso

This will not do any verify and be much faster

I can kick off a burn in the two seconds to type hdiutil burn filename.iso vs. the navigating and clicking around with a gui burning app.

I had to research it and others might find it useful
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 20
  • Joined: 8-November 07
  • From: 127.0.0.1
  • Member No.: 150,999
Here are my Terminal Tweaks:

Make your "ls" more Colorfull:

- Open a Terminal
- type "vi ~/.bash_profile"
- insert the following lines:
CODE
export CLICOLOR=1
  export LSCOLORS=ExFxCxDxBxegedabagacad

- Try changing the Color codes for other Colors wink.gif

Make your Vi and Vim Colorfull & More:
- Open a Terminal
- type "vi ~/.vimrc" for Console vi
or type "vi ~/.gvimrc" for Grafical Vim
- add some lines into the file:
CODE
set nocompatible
syntax on
set tabstop=4
set backspace=2

- you can find more commands if
you use google with the words "gvimrc" or "vimrc"

Add your own "Commands":
- Open a Terminal
- type "vi ~/.bash_profile"
- instert in example:
CODE
alias la="ls -la"

- close your Terminal and open it again
- now you have easy file-list-access via "la"

PM Profile Card
Go to the top of the page
+ Quote Post
******
  • Group: Members
  • Posts: 443
  • Joined: 1-August 07
  • From: Sacramento, CA
  • Member No.: 124,482
Eject!

umount /Volumes/SomeVolume

Mount!

mount /dev/disk0s2 /Volumes/SomeDir

though you might have to mkdir /Volumes/SomeDir first.


Comes in handy with stubborn volumes.

Keep in mind if you navigate to /Volumes first (cd /Volumes), you can leave out those parts referencing the directory.
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 4
  • Joined: 25-January 08
  • Member No.: 177,766
Great guide thanks a lot. wink.gif
PM Profile Card
Go to the top of the page
+ Quote Post
4 Pages V  < 1 2 3 4 >
Reply to this topic Start new topic

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version Time is now: 21st November 2009 - 01:10 AM