Skip to main content
Active reading.
Source Link
Peter Mortensen
  • 31.6k
  • 22
  • 109
  • 133

Use:

import os 

cmd = 'ls -al'

os.system(cmd)

os - This module provides a portable way of using operating system dependent-dependent functionality.

forFor the more osos functions, here is the documentation.

import os 

cmd = 'ls -al'

os.system(cmd)

os - This module provides a portable way of using operating system dependent functionality

for the more os functions here is the documentation.

Use:

import os

cmd = 'ls -al'

os.system(cmd)

os - This module provides a portable way of using operating system-dependent functionality.

For the more os functions, here is the documentation.

Code block
Source Link
josliber
  • 44.3k
  • 12
  • 102
  • 135

import os

cmd = 'ls -al'

os.system(cmd)

import os 

cmd = 'ls -al'

os.system(cmd)

os - This module provides a portable way of using operating system dependent functionality

for the more os functions here is the documentation.

import os

cmd = 'ls -al'

os.system(cmd)

os - This module provides a portable way of using operating system dependent functionality

for the more os functions here is the documentation.

import os 

cmd = 'ls -al'

os.system(cmd)

os - This module provides a portable way of using operating system dependent functionality

for the more os functions here is the documentation.

Source Link
Niranga
  • 778
  • 13
  • 25

import os

cmd = 'ls -al'

os.system(cmd)

os - This module provides a portable way of using operating system dependent functionality

for the more os functions here is the documentation.