Accurev Command Line Tutorial For Mac

Accurev command line tutorial for mac osx

If you’re working in Terminal on your Mac, you need to know the most important UNIX commands: those that work with directories, those that work with files, and miscellaneous but commonly used commands.

The AWS Command Line Interface allows you to manage your AWS services in the command line and automate them with scripts. In this video, look at how to configure the AWS CLI for a Mac. Sep 27, 2012 This is a command line tutorial primarily conducted in in the OS X command line. Because of OSX’s unix heritage, much of the info here is also useful in other unix inspired systems, like the Linux command line. The command line can be a scary place when you first encounter it. Terminal is a Mac command line interface. There are several advantages to using Terminal to accomplish some tasks — it’s usually quicker, for example. In order to use it, however, you’ll need to get to grips with its basic commands and functions. This chapter provides a detailed description of the accurev program, the main command-line tool in the AccuRev configuration management system. You can use this tool in a command shell (UNIX/Linux) or at a DOS prompt (Windows). You can also invoke this tool as part of a shell script or batch file, or from a scripting language such as Perl.

Folders are called directories in UNIX. Commands that refer to filenames, as most do, assume that you’re talking about files in the working directory. When you open the Terminal window, the working directory is set to your home directory, abbreviated ~. Bash shows you the current working directory and your username to the left of its prompt. The following table lists common directory-related commands.

UNIX Directory Commands
CommandWhat It Does
lsLists the names of the files in the working directory. For more
complete information, use ls –alF (.
cd directorynameChanges the working directory to the one you named.
cd .Brings you up one directory level.
cdReturns you to your home directory.
pwdDisplays the pathname of the current directory.
mkdir newdirectorynameMakes a new directory.
rmdir directorynameRemoves (deletes) an empty directory.

As in Windows, you can redirect the output of a command to a text file. So if you want a record of the files in a folder, type cd, followed by a space, drag the folder’s icon to the Terminal window, and press Return. Type ls > mydirectorylist.txt and press Return again. A file named mydirectorylist.txt will appear in the folder you chose. You can open the file in TextEdit to see a list of the files in that directory.


This table lists commands commonly used when working with files in the Terminal window.

Download microsoft office for mac free full version 2010. Download Microsoft Office 2010. This is the final version of the Microsoft Office 2010.

Working with Files
CommandWhat It Does
cp filename1 filename2Copies a file.
chmodChanges permissions for access to a file. Study the man page
before using this one.
diffCompares two files line by line (assumes text).
more filenameDisplays a text file one page at a time. Press the spacebar to
see the next page; press Q to quit. The man command works through
mv filename1 filename2Moves a file or changes its name.
rm filenameRemoves (deletes) a file.

This last table explains other handy commands that anyone getting started in Terminal will likely want to know.

Miscellaneous Commands
CommandWhat It Does
Control+CTerminates most operations.
dateDisplays the current date and time.
echoRepeats whatever appears after the command (after
helpDisplays a partial list of bash commands.
historyDisplays the last commands you typed. You can redo a command by
typing an exclamation point (!) followed immediately (no space) by
the number of that command in the history list. To repeat the last
command, type !!. To repeat the last filename, type
picoA simple UNIX text editor.
psDisplays a list of running processes.
sudoLets you carry out commands for which the account you are using
lacks authority. You will be asked for an administrator’s

When you’re working in Terminal, you don’t have a Trash Can to which deleted files are moved pending ultimate disposal. Delete it, and it’s gone. In general, UNIX has no Undo function.

Accurev Command Line Cheat Sheet

This is how to initialize a hard drive within macOS using the command-line. If you’ve encountered errors initializing a hard drive using Disk Utility, there is a good chance that following this procedure to initialize the hard drive via the command-line may work. I found this procedure because I had built a concatenated RAID disk set that contained six hard drives. One of the six hard drives failed, rendering the entire RAID array useless. I wanted to initialize the five non-defective hard drives, so that they could be repurposes. When I attempted to initialize the drives within Disk Utility, errors appeared. This was my fix for formatting a hard drive within macOS. #macOS #how-to