New answers tagged

1

Another way would be to check which TTY your terminal is attached to and check which shell is running on that tty. Then you could look at the PID (Process ID) and PPID (Parent Process ID) in case your shell has spawned another shell as a child process: MacBook:~$ w 15:16 up 8 days, 16:11, 2 users, load averages: 1.26 1.22 1.24 USER TTY FROM ...


0

When you start a terminal session in OS X the login utility is called. From the man page: The login utility enters information into the environment (see environ(7)) specifying the user's home directory (HOME), command inter- preter (SHELL), search path (PATH), terminal type (TERM) and user name (both LOGNAME and USER). Some shells may provide a builtin ...


0

There's a great answer over on Stack Overflow covering this: Exclude directory from find . command Essentially, the command to exclude directories from find is as follows: find . -type d \( -path dir1 -o -path dir2 -o -path dir3 \) -prune -o -print From the above example, you should be able to extrapolate excluding a single directory. A brief ...


3

Under csh family shells, you'll got your running shell with this command: % echo $shell If csh was run, directly or undirectly, from a Bourne family shell that had its SHELL variable exported, the latter being the common case, the SHELL variable would stay untouched so echo $SHELL will still show the its previous value which would be confusing. This is ...


3

It depends on the shell you are running in. If it is a POSIX confirming shell e.g. bash, ash,ash, sh, and some others e.g. csh, tcsh then echo $0 will return the shell's name e.g. ~ $ bash bash-3.2$ echo $0 bash or ~ $ ksh $ echo $0 ksh However not all shells are POSIX e.g. I used to use ipython shell profile and now fish


0

Enabling the three finger "drag" for the latest magic trackpad (with forcetouch) is a bit different (at least on El-Capitan): Go to System Preferences > Accessibility Choose Mouse & Trackpad from the options on the left. Click Trackpad Options. Place a checkmark next to "Enable dragging." From the related pop-up menu, choose “three finger drag” so ...


0

Echoing the "backup" to have the original disks available if you ever want to return to an old MacOSX, the only warnings I'll give is that you'll be having fun with EFI using Linux, so you might need to investigate the versions that supports that (and the UEFI support should be sufficient). If you choose the Windows 7 route, the better advice will be to ...


0

I needed to format a partition to ext3 on my USB flash drive. The drive was already formatted, and had 3 partitions, and I wanted to convert partition 1 from FAT32 to ext3. install brew, visit http://brew.sh/ install e2fsprogs using brew install e2fsprogs figure out the name of your partition or drive using diskutil list -- in my case, my partition had ...


0

If you want your USB to be "bootable" when all is said and done (ex: windows install disk), you're going to either want to use the Boot Camp Assistant (only check the "Create a Windows 7 or later version install disk" checkbox, then follow the prompts, it will create a FAT32 (i.e. bootable) USB version of your ISO file). Some ISO's are created "special" ...


0

A working approach to get Fedora Xfce Live booting is the dd-method: Download Fedora 23 Xfce Desktop. Attach the thumb drive. The thumb drive will be erased! Open Terminal and enter diskutil list to get the disk identifier of the thumb drive (e.g. /dev/disk3). Unmount the thumb drive with diskutil umountDisk /dev/disk3 Enter: sudo dd ...


-1

http://lifehacker.com/5934942/how-to-dual-boot-linux-on-your-mac-and-take-back-your-powerhouse-apple-hardware http://anee.me/installing-fedora-on-mac-book-pro/ did you try to search google? ) by the way, may be you just try something like Virtual Box? )


-1

In my version of El Capitan the /bin directory did not exist : /usr/local/bin So, the fix was : mkdir -p /usr/local/bin The -p flag will create the dir (and incidentally any dirs in the full path) if it does not exist. Then you can create symlinks & copy apps to /usr/local/bin because /usr/local not part of the "rootless" mode.



Top 50 recent answers are included