python open function

The manipulation of files is an operation which sooner or later we'll need to perform in our programs. The python built-in open function returns a file object, which lets us interact with files in different modes: we will see them in this article.

In this python tutorial you will learn:
  • How to use the python open function.
  • What are the various modes of operation which can be used with the python open function.
  • How to interact with a file object.
  • Why is important to close a file object, and how to do it.

bash-logoBash, the Bourne Again Shell, it's the default shell on practically all major linux distributions: it is really powerful and can be also considered as a programming language, although not as sophisticated or feature-reach as python or other "proper" languages. Furthermore, the Bash scripting is a must skill for any Linux system administration job. In this tutorial we will see how to use bash arrays and perform fundamental operations on them.

After following this tutorial you should be able to understand how bash arrays work and how to perform the basic operations on them.

There are several ways on how to check what version of Java is installed on your system. Most likely the simplest way is to directly use the java binary in combination with the -version option. To do so run java -version on your terminal.
$ java -version

Objective

Our objective is to create a copy of a PostgreSQL database that is constantly synchronizing with the original one and accepts read-only queries.

Operating System and Software Versions

  • Operating system: Red Hat Enterprise Linux 7.5
  • Software: PostgreSQL server 9.2

Requirements

Privileged access to both master and slave systems

Objective

Our objective is to make a dummy query execution run faster on PostgreSQL database using only the built in tools available in the database.

Operating System and Software Versions

  • Operating System: Red Hat Enterprise Linux 7.5
  • Software: PostgreSQL server 9.2

Requirements

PostgreSQL server base install up and running. Access to the command line tool psql and ownership of the example database.

This tutorial covers advanced python concepts such as Python classes, constructors, encapsulation, inheritance, polymorphism and creating Python packages and modules.

Therefore, if you do not have any prior Python knowledge we refer you to our Python Fundamentals Tutorial.

Objective

The following artcile will provide you with the information on how to check Python version on your operating system.

Difficulty

EASY

Conventions

Objective

Learn the basic concepts of Doctrine ORM, implementing the Data Mapper pattern with php.

Requirements

  • Composer (php package manager)
  • A working lamp setup
  • Understanding the basic object oriented programming and php
  • Understanding the basic database concepts

Objective

This article will provide you with the information on how to check bash version on your operating system.

Operating System and Software Versions

  • Operating System: - Distribution Agnostic

Requirements

No special prerequisites are required is required.

FIND LATEST LINUX JOBS on LinuxCareers.com
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed.
LINUX CAREER NEWSLETTER
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.

You may also be interested in: