Command Lines Flashcards Preview

PYTHON > Command Lines > Flashcards

Flashcards in Command Lines Deck (45)
Loading flashcards...
0
Q

hostname

A

my computer’s network name

1
Q

pwd

A

print work directory

2
Q

mkdir

A

make directory

3
Q

ls

A

list directory

4
Q

cd

A

change directory

5
Q

rmdir

A

remove directory

6
Q

print working directory

A

pwd

7
Q

my computer’s network name

A

hostname

8
Q

Make directory

A

mkdir

9
Q

change directory

A

cd

10
Q

list directory

A

ls

11
Q

remove directory

A

rmdir

12
Q

pushd

A

push directory

13
Q

push directory

A

pushd

14
Q

popd

A

pop directory

15
Q

pop directory

A

popd

16
Q

cp

A

copy a file or directory

17
Q

copy a file or directory

A

cp

18
Q

mv

A

move a file or directory

19
Q

move a file or directory

A

mv

20
Q

less

A

page through a file

21
Q

page through a file

A

less

22
Q

cat

A

print the whole file

23
Q

print the whole file

A

cat

24
Q

xargs

A

execute argument

25
Q

execute argument

A

xargs

26
Q

find

A

find files

27
Q

find files

A

find

28
Q

grep

A

find things inside files

29
Q

find things inside files

A

grep

30
Q

man

A

read a manual page

31
Q

read a manual page

A

man

32
Q

apropos

A

find what man page is appropriately

33
Q

find what man page is appropriate

A

apropos

34
Q

env

A

look at your environment

35
Q

look at your environment

A

env

36
Q

echo

A

print some arguments

you can use echo command to write and overwrite data to a file using command line in terminal

echo “hello you” test.txt
this will overwrite any existing data in file test.txt with text hello you.

37
Q

print some arguments

you can use this command to write and overwrite data to a file using command line in terminal

A

echo

echo “hello you” test.txt

this will overwrite any existing data in file test.txt with text hello you.

38
Q

export

A

export/ set a new environment variable

39
Q

export/ set a new environment variable

A

export

40
Q

exit

A

exit the shell

41
Q

exit the shell

A

exit

42
Q

sudo

A

DANGER! become super user root DANGER!

43
Q

chown

A

change file owner and group

44
Q

chmod

A

Change access permissions of files