100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Samenvatting

Summary All essential commands to help you ace the CSC2001F unix test

Beoordeling
-
Verkocht
-
Pagina's
5
Geüpload op
24-01-2022
Geschreven in
2021/2022

There is a compulsory test on UNIX commands in CSC2001F. If you don't get 80% (this was the case in my year), you don't get DP and therefore fail the course. This summary covers all the possible commands you could be asked, and will help you get that DP effortlessly.

Meer zien Lees minder
Instelling
Vak









Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
24 januari 2022
Aantal pagina's
5
Geschreven in
2021/2022
Type
Samenvatting

Onderwerpen

Voorbeeld van de inhoud

Command Lines for Terminal in Ubuntu

• Directory = file
o a file which consists solely of a set of other files
• While typing a file, press Tab for it to finish automatically
• ls (or l) = gives the list of all files in the directory you are currently in
• ls -l = the same as above but more detailed
• mkdir = makes a new directory
• cd = change directory (go into that directory)
• mv ??1 ??2 = changes the name of ??1 into ??2
• mv ??1 ~/??2/ = moves ??1 into the ??2 directory (/ = directory)
• Ctrl-k-x = saves the java file (or probably any file)
• more ??.java = prints the code out to the screen
• javac ??.java = compiles java program
• java ?? = Runs java program (leave out .java)
• joe Makefile = creates a new Makefile
• make = compiles the updated version of the file you file you changed (either it
will say it is up to date or it will say eg. “javac ??.java” which means it was
compiled/updated
• In a Makefile, you can create a rule to delete all .class files, which are the
compiled files. This way, you can only leave the source files
o clean:

rm. *.class [remove all class files]

• more Makefile = see what’s in the Makefile
• less ?? = does the same task as more but better
• Source directory (.java) vs bin directory (.class)
• joe ?? = opens up file
• In the Makefile if I say:
o run:

????

, o It means that I can now say make run and it runs the line of ??? code
automatically like auto replacement
• rm ?? = remove/delete file
• rm -r dirname/ = remove a directory
• rmdir ?? = remove/delete directory
• rm -r .git/ = remove git repository with everything inside
• git add name.java = adding .java to a git
• git commit -m 'message' = committing 2 files to be part of repository
• ??~ = backup file
• cd = go to home directory
• joe ??1/??2 = open a file that is in another directory within the directory you
are in
• cp = used to create a copy ie. cp HelloWorld.java HelloWorld_Copy.java
• cd .. = goes back to the previous/bigger/parent directory
• Ctrl-Shift-- = undo
• Ctrl-Shift-^ = redo
• Ctrl-Shift-+ = zoom in
• Ctrl-- = zoom out
• cd ../?? = move out of current directory into another director in its parent’s
directory
• q = while using the “more” command on a large file and you want to exit early
• java ?? > ??.txt = output redirection into new txt file
• java ?? >> ??.txt = output redirection into existing txt file
• rm *.txt (or any file extension) = removes all existing files with that extension
in that directory
• python ??.py = run python file from joe
• tar -zcvf myfolder.tar.gz myfolder = gzip.tar a whole Assignment
• tar -cf HelloWorld.tar HelloWorld = gathering files into single archive file
• gzip HelloWorld.tar = compresses a file
• tar -cf - Assignment 1 | gzip > assignment.tar = does above 2 in one go
• gzip -cd test.tgz = unzips and untars test.tgz
• tar -xf ??.tar.gz = unzip a tar.gz file

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
chloewalt University of Cape Town
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
24
Lid sinds
3 jaar
Aantal volgers
12
Documenten
36
Laatst verkocht
2 weken geleden

4,8

6 beoordelingen

5
5
4
1
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen