Getting started using Solaris part 2

First steps

As first step you should become familiar with some command, used to work with Solaris OS

Command man is your first friend. Do not be shame to use it (I personally use this command at least few times each day). Exit the command by pressing key q
    man man - will give you details about the command (man in this case)
    man -s 5 some_command - search for information in section 5
    man -M /some/hidden/place command - search for information about the command adding directory not mentioned in MANPATH environment variable
    Here and below use man command to get full list of keys, features, etc. of the command

 Command ls help you list the content of directory
    ls -l - show long listing including size, rights, etc
    ls -a - show hidden files (which name start with . (dot)
    ls -r - show listing in reverse order
    ls -t - show listing, sorted by time

Command cd help you navigate through the directories
    cd - go to your home directory
    cd / - go to the root directory
    cd .. - go to one directory up
    cd test - go to subdirectory test (relative to current directory)
    cd /var/tmp - go to directory /var/tmp (absolute path)
    cd - - go to previous direcory (before last cd command, symbol after cd is dash)

Command file help you identify the type of file

Command more paginate file showing one page at the time on the screen

Command cat display the content of the to the standard output

Command tail show you the tail of the file (few last lines), with key f can get and display the new lines, appended to the file

Command vi is text editor

Command mkdir create new directory

Command rm remove file or directory

Command mv is used to move or rename file or directory

No comments:

Post a Comment

Compressed tar archive

There are some cases when you want to create compressed tar archive but you do not have enough disk space to keep original files and tar arc...