03052014 Flashcards

0
Q

The EDITOR variable can be set to your favorite editor

A

export EDITOR=/(path)

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

Prepending a dot to a PATH means the program will be looked for in the current directory first, before searching the rest of the path

A

export PATH=”.:$PATH”

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

An export can be removed by setting it to nothing

A

export EDITOR=

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

Create simple commands without having to make a script out of it

A

USING ALIASES

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

Echo the clear-screen sequence for the current terminal.

A

tput clear

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

To remove, use _____ command

A

unalias

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

You can also use alias to move around the file system efficiently

A

e.g.
#example 1
mkdir /home/lezeastmor/linuxbox
alias lbook=”cd /home/lezeastmor/linuxbook”

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

You can also use alias to move around the file system efficiently ( using variable)

A
#example 2
export LBOOK="/home/lezeastmor/linuxbook"
alias lbook="cd $LBOOK"
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

You can use the LBOOK variable to copy files to that directory

A

cd /tmp
touch f1.txt
cp f1.txt $LBOOK
#note that the above examples will only be effective in that terminal and will not persist accross a reboot

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