Linux command that every odoo user should know

Nowadays most of odoo programmers are using Linux for odoo, but they are mostly struggling with commands so I thought it might help to the community to share my knowledge about some common commands that used in odoo.

  • To open terminal 

press key Ctrl + Alt + T

  • Locate any Folder (example: Odoo folder)

This command is used to locating any folder.
  • PWD

To know in which directory you are in, you can use pwd.

  • Create folder 

sudo mkdir -R folder_name 
  • Create file

sudo touch file_name
  • Remove folder

sudo rm -rf  folder_name

  • Remove file

sudo rm file_name
  • To check list in folder or directory


it will show you all list of folder

ls -l

it will show you list with all information like permission,access right, date etc.

  • Start odoo service

sudo service service_name start

  • Stop odoo service

sudo service service_name stop

  • Restart odoo service

sudo service service_name restart

  • Clear screen


Clear command does what exactly it says, it clears the screen

  • Open file in gedit

to open the file in gedit from the command

gedit file_name

  • Search history command

to search history command from terminal use   Ctrl + R

and write similar word that you used in the previous commands

  • Check odoo log file

sudo tail -f  odoo.log

Log file is located in /var/log/odoo/odoo.log

  • Search odoo Service process

sudo ps -ax|grep odoo

  • Kill odoo service process

sudo kill -9  process_id

  • Install any package by command

sudo apt-get install package_name

  • For python package:

sudo pip install package_name

  • Check Configuration of  Network interface


  • Get os name


  • Get os name and version

lsb_release -a

  • Move File

mv source_path_file  destination_path

eg. mv /home/desktop/file   /home/Music/

  • Copy file 

cp source_path_file  destination_path
Linux command that every odoo user should know
Divya Vyas
17 February, 2020
Share this post
Sign in to leave a comment
Understanding Odoo Configuration File