≡ Menu

apple mac os x

How To Update Apple OS X Using Command Line Software Update Tool

How do I install software updates from the command line tool on my Apple Mac OS X computer? How can I remotely update my Apple computer by just sshing into a system? Is there is something like apt-get command or yum command for Apple OS X?
[click to continue…]

Unix: Find Directory Name From Path

I am a new Unix shell programer. How can I extract the directory name from a full path (say /nas01/data/backups/file.tar.gz)? How do I get directory name from its path on a Linux or Unix-like system?
[click to continue…]

Bash History: Correct / Repeat The Last Command With a Substitution

I often type the wrong command as follows under Linux bash shell:
rsync -av dir1 user@server1.cyberciti.biz:/path/to/dir1
cp -av file1*.txt file2*.txt /path/to/dest

I need to correct those command as follows:

rsync -av dir5 user@server1.cyberciti.biz:/path/to/dir1
cp -av delta1*.txt delta2*.txt /path/to/dest

How do I replace dir1 with dir5 or file with delta and repeat the last command under bash shell?
[click to continue…]

Linux / Unix: lftp Command Mirror Files and Directories

How do I mirror files from remote ftp server using lftp command? How do put the entier directory from a local disk to a remote ftp server (reverse mirror) using lftp command under Linux and Unix like operating systems?
[click to continue…]

Apple OS X: Remove a Symbolic Link (Symlink) Command

How do I remove a symlink under Apple Mac OS X using bash command line option?
[click to continue…]

Unix / Linux: Find Information About The Process Including All Command Line Parameters

I'm using ps command to read a snapshot of the current processes under Unix / Linux operating systems. However, ps -e or ps aux only displays command / processes names. I need to see complete information about the process including all parameters passed to it. How do I see it under Unix / Linux using ps command?
[click to continue…]

Linux / Unix: Cat Command Examples

cat command

I am a new Linux and Unix system user. How do I use cat command on Linux or Unix-like operating systems? Can you provide basic examples and syntax usage for cat command?
[click to continue…]

vi / vim: Jump To End Of File Command

I'm using vim as a text editor and editing a large code file written in python. How do I jump to end of file using vim text editor under Apple Mac OS X Unix operating systems?
[click to continue…]

Mac OS X: Read Linux ext3 / ext4 External USB Hard Disk Partition

How do I read (mount and access files) ext3 / ext4 external hard disk partition under Mac OS X?
[click to continue…]

Transfer Files From One UNIX Server To Another Server Using Windows / Linux Desktop

How do I securely transfer files from one UNIX / Linux server to another UNIX server using Windows or Linux desktop clients without using ftp client?
[click to continue…]