Last active
December 19, 2015 04:09
-
-
Save nuttt/5895019 to your computer and use it in GitHub Desktop.
OS homework 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Script started on Sun 30 Jun 2013 06:06:43 PM ICT | |
nut@nut-ubuntu:~$ sudo adduser adduser 5431010121 --force-badname | |
sudo | |
[sudo] password for nut: | |
Allowing use of questionable username. | |
Adding user `5431010121' ... | |
Adding new group `5431010121' (1003) ... | |
Adding new user `5431010121' (1003) with group `5431010121' ... | |
Creating home directory `/home/5431010121' ... | |
Copying files from `/etc/skel' ... | |
Enter new UNIX password: | |
Retype new UNIX password: | |
passwd: password updated successfully | |
Changing the user information for 5431010121 | |
Enter the new value, or press ENTER for the default | |
Full Name []: | |
Room Number []: | |
Work Phone []: | |
Home Phone []: | |
Other []: | |
Is the information correct? [Y/n] Y | |
nut@nut-ubuntu:~$ su 5431010121 | |
Password: | |
5431010121@nut-ubuntu:/home/nut$ cd ~ | |
5431010121@nut-ubuntu:~$ cat helloworld.c | |
#include <stdio.h> | |
int main(){ | |
printf("Hello world!"); | |
return 0; | |
} | |
5431010121@nut-ubuntu:~$ gcc helloworld.c -o helloworld | |
5431010121@nut-ubuntu:~$ ./helloworld | |
Hello world!5431010121@nut-ubuntu:~$ exit | |
exit | |
nut@nut-ubuntu:~$ exit | |
exit | |
Script done on Sun 30 Jun 2013 06:08:41 PM ICT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment