Cheat VI
Cheat VI html
Cheat VI html
bash-3.00$ vi ~/.profile -bash-3.00$ cat ~/.profile # This is the default standard profile provided to a user. # They are expected to edit it to meet their own needs. MAIL=/usr/mail/${LOGNAME:?} export TERM=xtermc
The command ‘Y’ or ‘yy’ copies (yanks) one or more lines. To copy one line, two lines, 10 lines, and all lines to the end of the file, respectively: Y 2Y 10Y yG To paste the text contained in the buffer above (uppercase P) or below the current cursor position (lowercase p), respectively: P p… Leer más »
Displaying line numbers under vi / vim can be very useful for debugging code errors and to improve overall readability of a program. vi / vim show line number command To display line numbers along the left side of a window, type any one of the following: :set number or :set nu (Fig.01: Vi /… Leer más »
by Wei-Meng Lee 02/21/2003Jaguar includes a few text editors for your editing work. Of these applications, many experienced Unix users will prefer vi (Visual Editor). While users of GUI systems are more familiar with «user friendly» word processors and text editors, vi is a powerful and feature-rich text editor that is lean and efficient. However,… Leer más »
Setting up NX Server for Solaris Prepared by: Gian Filippo Pinzari N°: D-405/2-NXS-DOC Approved by: Gian Filippo Pinzari Signature: Date: 20/05/2004 Amended: B Setting up NX Server for Solaris Index Setting up NXServer for Solaris Download Installation Enabling PAM Authentication with NX Download Download the ‘NX Server for Solaris’ package along with the prerequisite ‘NX… Leer más »
useradd -d /export/home/fred -m -s /bin/ksh -c «Fred Smith» fred
Current run-level who -r init 1 smf to shut multi user
flock Blogged with the Flock Browser
Given an ISO image in /export/temp/software.iso, a loopback file device (/dev/lofi/1) is created with the following command: lofiadm -a /export/temp/software.iso /dev/lofi/1 The lofi device creates a block device version of a file. This block device can be mounted to /mnt with the following command: mount -F hsfs -o ro /dev/lofi/1 /mnt These commands can be… Leer más »