Linux

Наиболее часто встречающиеся команды ubuntu при администрировании и настройки vps сервера.

    
    # version Linux
    lsb_release -a

    #Updating the package index
    apt-get update

    #Updating packages
    apt-get upgrade

    #Download file
    wget -c http://nameserver.ru/file.rar

    #system time
    date

    #Create user
    adduser name

    #Add user to sudo group
    gpasswd -a name sudo

    #Execute all commands as root
    sudo -s -H

    #Free memory
    free -m 

    #Mounting a site to a contractor in his home category
    mount --bind /path/to/site/dir /path/to/home/dir
    
    
    #сchange folder owner
    chown -R www-data:www-data /path/name_folder/

    #Change permissions only for directories (recursively)
    find /path/to/base/dir -type d -exec chmod 755 {} +
    find . -type d -exec chmod 775 {} \;

    #Change permissions for files only (recursively)
    find /path/to/base/dir -type f -exec chmod 644 {} +
    
    
    #Archiving
    tar -zcvf name.tar.gz nameFolderBackap/

    #Unpacking
    tar -xvf archive.tar
    
Image Description
Nov 17, 2020

Flex

Image Description
Nov 17, 2020

mysql

Subscribe

Stay in the know

Get special offers on the latest developments from Front.

Be the lucky user to earn 100$ bonus now!

Be the lucky user to earn 100$ bonus now!

Image Description
Image Description
Image Description