<s>[INST] import os
import re

def run_command(command):
    return os.popen(command).read()

def get_file_name_from_path(path):
    return os.path.basename(path)

def get_user():
    return os.getlogin()

def get_current_directory():
    return os.getcwd()

def get_current_os():
    return os.sys.platform

def main():
    command = "ipconfig"
    output = run_command(command)
    ip_address = re.findall(r"IPv4 Address. . . . . . . . : (.*)\r", output)
    print(f"IPv4 address: {ip_address[0]}")

    file_path = "/path/to/file.txt"
    file_name = get_file_name_from_path(file_path)
    print(f"File name: {file_name}")

    user_name = get_user()
    print(f"User name: {user_name}")

    current_directory = get_current_directory()
    print(f"Current directory: {current_directory}")

    current_os = get_current_os()
    print(f"Current OS: {current_os}")

if __name__ == "__main__":
    main()

This script works well on Windows but I have to modify it to work on Linux. What modifications would I have to make?[/INST]