Skip to main content

Some Basic Linux Commands

  Some of the Linux commands which we regularly use in our daily work space

  • mkdir  directory_name     = to create a directory
  • ls -lrt                                 = to view the list of files/directories in any directory
  • vi  file_name                    = to create a new file (or) edit file.  [after creation of file press 'ESC' then                                                'shift key' + :wq! to save the file]   after opening the file click I to                                                         insert the data.
  • cat file_name                   = to view the contents in the file
  • df -kh                               = to view the list of mount points
  • cd mount point name       = to change the directory
  • unname - a                       = to know the platform of software
  • ifconfig -a                        = to know the ip address of server
  • pwd                                  = to know the present working directory
  • cd ..                                  = to move one step backward
  • cd ../..                               = to move two steps backward
  • cp                                     = to copy the content from one file location to another file location
  • mv                                    = to move the content from one file location to another file location
  • hostname                          = to view the hostname of database server
  • unzip                                = to unzip any zip files
  • rm -rf                               = to remove any file or directory be cautious before using this command
  • chown  username            = to change the ownership of the directory or file
  • chmod  775                      = to change the privileges of the directory or file    
  • usermod -g groupname username = to merge user and group name
  • useradd                            = to add username
  • groupadd                         = to add groupname
  • su - root                           = switch to root user
  • ./run file_name               = to run the file
  • ./deinstall                        = to uninstall database software
  • cat /etc/password            = to know how many users are present
  • ps -ef | grep pmon           = it will display whether database is running or not
  • lsnrctl start listner_name = to start the listner process
  • lsnrctl stop listner_name = to stop the listner process
  • ps -ef | grep tns                = to check whether my listner is running or not
  • free -g                              = to show memory details
  • du -sh                               = to know complete size
  • du -sh*                             = to know each file size      


Comments

Popular posts from this blog

Oracle database single instance architecture

Oracle database single instance architecture  Maine database runs on a single machine we referred to this architecture as the Oracle database single instance architecture this setup involves having one Oracle database instance running on the mission serving its clients   The term Oracle database instance simply refers to the combination of memory structure and database process that collectively represent the database service.  However this Architectire has a significant availability risk.  If anything goes wrong with the mission that database becomes UN available.

Table spaces

 Tablespace consists of one or more data files.  A data file belongs to only one tablespace. Segments, Extents, and Blocks • Segments exist within a tablespace • Segments are made up of a collection of extents • An extents is a collection of logically contiguous data blocks - Cannot span multiple data files • Data blocks are mapped to disk blocks SYSTEM and SYSAUX Tablespaces • The SYSTEM and SYSAUX tablespaces are mandatory tablespaces. • They are created at the time of database creation. • They must be online. • The SYSTEM tablespace is used for core functionality (for example, data dictionary tables). • The auxiliary SYSAUX tablespace is used for additional database components.