Udemy: MacOSX terminal Flashcards

1
Q

to list files with detail

A

ls -l

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

to get to the root of the system

A

cd /

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

to get back to the default root

A

cd ~

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

to clear ALL the content

A

command + k

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

to find out where terminal commands are stored

A

which

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

to exit the manual press

A

q

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

to open a file in a simple text editor with options

A

nano

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

to open a file directory use the ___ keyword

A

open

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

open user home directory in OSX

A

open ~

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

text.txt

To open the above file with the DEFAULT application in the terminal

A

open -e text.tx

open -e

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

to create a new file

A

touch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

to rename a file use

A

mv

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

to copy a file

A

cp

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

to delete a file

A

rm < file name>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

make a new folder

A

mkdir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

to go up a directory

A

cd ..

17
Q

to make a file in a directory

A

mkdir -p

18
Q

go up three directories

A

cd ../../..

19
Q

remove a directory with folders

A

rm -rf

20
Q

create a file name named me with “helloworld”

A

echo “me”&raquo_space; “helloworld.txt”

21
Q

when using a single > will

A

replace the text

22
Q

Command that allows for output of a command to be sent to both a file and another command or the terminal screen at the same time.

A

tee

23
Q

to find out your loggin

A

whoami

24
Q

to change owner use keyword ____

A

chown

25
Q

change permissions of file “me.txt” to

A

sudo chown

sudo chown me.txt

26
Q

to change a groucp

A

chgrp

sudo chgrp

27
Q

to enter as a root user use the command

A

Bash

28
Q

to exit as a bash user

A

exit

29
Q

make a new directory as a admin with demo 1 , 2, 3

A

sudo mkdir -p demo/1/2/3

30
Q

to create a executable bash shell file what is placed on the top of the file

A

!

31
Q

how to list ALL files including dot files

A

ls -al

32
Q

in bash end an if statement with

A

fi

33
Q

the keyword for createing a shortcut

A

alias