Professional Documents
Culture Documents
Basic Commands
Basic Commands
ls
2. pwd
3. cd <dir_name>
4. mkdir <dir_name>
5. rm <file_name>
6. rm -r <dir_name>
delete <dir_name>
7. To create a file
vi <file_name_with_extention>
i) You will see black editor,
Press i to move into insert mode to write text into file, avoid the
use of numkeypad on RHS of your keyboard
8.cat <filename>
to display the contents of the file only
9.gcc <filename_with_extension>
to compile the file, if everything is fine no message appears, it will
cerate a file a.out
10 ./a.out
to run the executable for the program
15. Ctrl D
to logout from unix server