cs211 unix commands (copy)

0.0(0)
studied byStudied by 1 person
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/17

flashcard set

Earn XP

Description and Tags

basic unix commands and functions

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

18 Terms

1
New cards

cat <file>

prints contents of file to command window

2
New cards

cd <directory>

goes into whatever file

3
New cards

gcc main.c -o a

compiles program

4
New cards

.a./out

runs program

5
New cards

cp <file> <file2>

copies contents of file onto file2 and of file also stays intact

6
New cards

history

lists history of all commands issued at system prompt including failed/noncommands

7
New cards

ls

lists the files and subdirectories in a directory

8
New cards

ls -F

lists the difference between files and directories — indicating directories as directoryname/

9
New cards

ls -l

lists files with status/detail info

10
New cards

ls -lt

lists file info in long format (with details) sorted from most recently modified to least recently modified

11
New cards

ls -a

ists all files in directory including dot files

12
New cards

cd ..

goes out one level to parent directory

13
New cards

‘file name’

if file name or directory name has space, use single quotes around it so its seen as one word

14
New cards

mkdir <directory>

makes directory

15
New cards

mv <file> <file2>

moves file to file2 and deletes file1 (now the og contents of file2 don’t exist)

16
New cards

pwd

prints pathname of the current directory

17
New cards

rm <file>

removes or deletes filesr

18
New cards

rmdir <directory>

removes directory