UNIX

silon10.ev
Mind Map by silon10.ev, updated more than 1 year ago
silon10.ev
Created by silon10.ev almost 6 years ago
17
0

Description

unix

Resource summary

UNIX
  1. Pathname
    1. Root
      1. Always starts with forward slash
      2. Relatives
        1. Relative parthname are quickly to use than absolute pathnames, because their point of departure is the current working directory rather than the root
        2. Absolutes
          1. An absolute pathname identifies a file by starting at the root , irrespective of which directory the user is in at the time
        3. Commands to work with directories
          1. Command ls to list the contents of a directory to screen
            1. -a displays all the files in the current directory including hidden files, which are prefixed with a dot
              1. -f identifies the types of files in a listing
                1. -G colorizes screen output so that categories of files can be seen easly
                  1. -l displays details about each file in a directory, such as its type, permissions, owner, size stc
                    1. -r reverses the order in which the files in a directory would be displayed by default
                      1. -t displays files according to their modification times
                    2. cat command allows you to view and modify the contents of a file. it also allows you to combine two existing files to create a new one
                      1. -b numbers all the lines in a file except blank lines
                        1. -n numbers all the lines in a file
                          1. -u allows you to prevent the command from buffering screen output. this is useful when the file is large and the system memory is limited
                          2. Creating a File
                            1. touch command to create a new file with the name you specify, default permissions and can modify existing files
                              1. Redirections before command such as echo, cat or ls is executed, you can redirect its output to a file using the > notation
                                1. Application Files are often created when you use an application such as vi, or macs text editor. To edit, save an give it a name
                                2. rm command to delete files, either simgle or in multiple
                                  1. -r to delete the contents recursively
                                    1. -P Overwrite regular files before deleting them
                                      1. -d like the r option, attempt to remove directories as well as files
                                        1. -v Be verbose when deleting files, displaying each as it is remove
                                          1. -i Request confirmation before removing the specified file
                                            1. -f Attempt to remove files without prompting for confirmation, irrespective of file permission
                                            2. Permissions
                                              1. read = 4, read files or list the contents of a directory
                                                1. white = 2 to modify a file or create an delete in a directory
                                                  1. execute = 1 to run a file, if it's a program or script, or access files in the directory
                                                    1. Every file and directory also has three groups "owner" "group" "other user"
                                                    2. wilecards and regular expresion
                                                      1. the * wildcard matches zero or more instances of any character
                                                        1. the ? wildcard matches a single instance of any character
                                                          1. the [ ] wildcard to match sets of chararcters. You can include lists of characters or specify a range
                                                            1. the ! wildcard within [ ] matches any chararctes that is not listed in the square brakets
                                                            2. the find command seach a file when you do not know where it is located
                                                              1. -atime to find files according to their access time (find /-atime 2)
                                                                1. -ctime to find files according to their modification time (fine /-ctime 2)
                                                                  1. -group to fine files according to their owner (fine /-group <name_group>)
                                                                    1. -size to fine files according to their size (fine /-size 10)
                                                                      1. -name fine /home -name <namefile>
                                                                      2. grep to search the content within local files using the siyntax grep <options><regular exprexion> <file>
                                                                        1. -c option suppresses output by printing a count of maching lines for each input file
                                                                          1. -h to suppress prefixing of filesnames on output when searching multiple files
                                                                            1. -H prints the filename for each match
                                                                              1. -i allows you to ignore case distinction in both the pattern and input files
                                                                                1. -n when you want to prefix each line of output with line number within its input file
                                                                                  1. -v to print nonmatches lines for each input file
                                                                                    1. -w to search for a specific pattern as word
                                                                                    Show full summary Hide full summary

                                                                                    Similar

                                                                                    Mapa Mental - Unix
                                                                                    Guiru Webs
                                                                                    Sistema Operativo Linux
                                                                                    docente.alejandr
                                                                                    EL SISTEMA OPERATIVO
                                                                                    Fernando Herrera
                                                                                    Primer parcial SITEMAS OPERASTIVOS II
                                                                                    Gerson Azcona
                                                                                    sistemas operativos
                                                                                    Schneider Daza
                                                                                    sistemas operativos en PC y Mobil
                                                                                    maygalinda mendez
                                                                                    Sistemas Operativos
                                                                                    Michelle Moreno
                                                                                    Examen AIX Administration 7
                                                                                    mauriciocartes92
                                                                                    UNIX
                                                                                    EDM UPW
                                                                                    sistemas operativos en PC y Mobil
                                                                                    maygalinda mendez
                                                                                    Mapa Mental - Unix
                                                                                    pedro lo