Debian: Μάθετε και αλλάξτε το όνομα του υπολογιστή σας
Μπορείτε να εμφανίσετε και να αλλάξετε το όνομα του κεντρικού υπολογιστή στο Debian. Σας παρουσιάζουμε βήμα προς βήμα πώς να το κάνετε.
Εμφάνιση ονομάτων κεντρικών υπολογιστών στο Debian
- Ανοίξτε το τερματικό και πληκτρολογήστε "hostname" στη γραμμή εντολών.
- Η εντολή "hostname -f" εξάγει το πλήρες όνομα κεντρικού υπολογιστή sam (FQDN) (πλήρως αναγνωρισμένο όνομα τομέα).
Debian: αλλαγή ονόματος κεντρικού υπολογιστή - έτσι θα λειτουργήσει
Μπορείτε να αλλάξετε το όνομα κεντρικού υπολογιστή κάτω από το Debian κατά τη διάρκεια της λειτουργίας ή μόνιμα.
- Για να αλλάξετε το όνομα του κεντρικού υπολογιστή κατά τη λειτουργία, πληκτρολογήστε την εντολή "hostname" στο τερματικό και το νέο όνομα μετά από αυτό. Έτσι, η εντολή είναι "hostname NEWER_NAME".
- Εάν θέλετε να αλλάξετε μόνιμα το όνομα του κεντρικού υπολογιστή, μπορείτε να το επεξεργαστείτε με οποιοδήποτε πρόγραμμα επεξεργασίας. Το όνομα του κεντρικού υπολογιστή βρίσκεται στο αρχείο "/ etc / hostname".
- Για να μπορέσετε να κάνετε την αλλαγή αμέσως, απλά χρησιμοποιήστε το σενάριο που εκτελείται επίσης κατά την εκκίνηση του συστήματος. Για να το κάνετε αυτό, πληκτρολογήστε "/etc/init.d/hostname.sh" στο τερματικό.
Ξέρετε ότι; Αυτός είναι ο λόγος για τον οποίο το Linux είναι πιο διαδεδομένο από τα Windows
Θα εξηγήσουμε τον τρόπο ενημέρωσης του Debian στην επόμενη πρακτική συμβουλή.