Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Linux Essentials - Quiz 1 - Visual Effects Programming | VSFX 160, Quizzes of Typography

Material Type: Quiz; Professor: Kaul; Class: Introduction to Visual Effects Programming; Subject: Visual Effects; University: Savannah College of Art and Design; Term: Unknown 1989;

Typology: Quizzes

Pre 2010

Uploaded on 08/04/2009

koofers-user-abp-1
koofers-user-abp-1 🇺🇸

4

(1)

10 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
QUIZ I – LINUX ESSENTIALS
# LINUX CHALLENGE LINUX COMMAND
1 How do you list the contents of a directory?
How about hidden files (with a .)? ls
ls -al
2 How to do go to your home directory?
How do you go back one directory? cd
cd ..
3 How do you see how much disk space you have on the
temp drive? df -k
4 How do you auto mount your supreme power folder on
Linux?
In Linux desktop, click Lin Neghiborhood ICON,
mount supreme power, Options-export mountscript as
supremeMnt.
kate .bashrc file, type ~/supremeMnt
5 How do you execute your shell script, including your
.bashrc file? source .bashrc
6 How do you tell what type of files are in a directory? file *
7 What is a good, well rounded script editor for MEL,
Python, & Shell scripting? Kate, You type kate file.txt to edit any file
8 I rendered unpadded files with Maya. How do I pad them
with the standard file.0001.tga format? Shell scripting will help you. On one line type:
for i in `seq 1 9`;do mv file.$i.tga
fileNew.000$i.tga;done
9 How do I rename a file?
mv file.tga file2.tga
10 How do I find a file? find –name file.txt
11 How do I remove every file in a directory?
How do I delete a folder with files in it? rm *
rm –rf folder [be careful...no going back]
12 How do I copy a file? cp sas.txt sas2.txt
13 How do I use the internet?
How do I read a .pdf file mozilla yahoo.com
xpdf file.pdf
14 How do I mount my firewire/USB device? Plug in you device. Click MountFire wire icon
To Read device, cd /misc/firewire1
pf3
pf4
pf5

Partial preview of the text

Download Linux Essentials - Quiz 1 - Visual Effects Programming | VSFX 160 and more Quizzes Typography in PDF only on Docsity!

QUIZ I – LINUX ESSENTIALS

LINUX

CHALLENGE

LINUX

COMMAND

How

do

you

list

the

contents

of

a

directory?

How

about

hidden

files

(with

a

ls

ls

-al

How

to

do

go

to

your

home

directory?

How

do

you

go

back

one

directory?

cd

cd

How

do

you

see

how

much

disk

space

you

have

on

the

temp

drive?

df

-k

How

do

you

auto

mount

your

supreme

power

folder

on

Linux?

In

Linux

desktop,

click

Lin

Neghiborhood

ICON,

mount

supreme

power,

Options-export

mountscript

as

supremeMnt.

kate

.bashrc

file,

type

~/supremeMnt

How

do

you

execute

your

shell

script,

including

your

.bashrc

file?

source

.bashrc

How

do

you

tell

what

type

of

files

are

in

a

directory?

file

What

is

a

good,

well

rounded

script

editor

for

MEL,

Python,

Shell

scripting?

Kate,

You

type

kate

file.txt

to

edit

any

file

I

rendered

unpadded

files

with

Maya.

How

do

I

pad

them

with

the

standard

file.0001.tga

format?

Shell

scripting

will

help

you.

On

one

line

type:

for

i

in

`seq

9`;do

mv

file.$i.tga

fileNew.000$i.tga;done

How

do

I

rename

a

file?

mv

file.tga

file2.tga

How

do

I

find

a

file?

find

–name

file.txt

How

do

I

remove

every

file

in

a

directory?

How

do

I

delete

a

folder

with

files

in

it?

rm

rm

–rf

folder

[be

careful...no

going

back]

How

do

I

copy

a

file?

cp

sas.txt

sas2.txt

How

do

I

use

the

internet?

How

do

I

read

a

.pdf

file

mozilla

yahoo.com

xpdf

file.pdf

How

do

I

mount

my

firewire/USB

device?

Plug

in

you

device.

Click

MountFire

wire

icon

To

Read

device,

cd

/misc/firewire

QUIZ II – LINUX EXPANSION

LINUX CHALLENGE

LINUX COMMAND

How do I make a symbolic link to a directory?

ln –s dirName linkName

How do I substitute a new piece of text in place

of the old one in the last command?

^oldText^newText

How do I set up an Alias in my .bashrc file?

An example is to put this in your .bashrc file

alias h=’history’

What does ~ mean? What does / mean?

Home directory, ex. cd ~ Root directory, ex. cd /

How do I flipbook Maya images?

fcheck –n 1 100 1 file.#.tga

# is generally defgined as a 4 digit passed number

How do I see what cpu usage is on my machine?

Who I look at the processes in my current shell?

top^ ps

How do I kill a process?

How do I kill all Maya processes?

kill -9 pid# killall maya

How do I batch convert images from one format to

another and

How can I pad images?

imgcvt -h

What is the Adobe Premiere-like program that is

free on Linux?

type cinelerra

How can I run Linux, Python, and many other programs on my PC just by booting from a CD?

Go to knoppix.org and download the program and burn it on a CDROM.

Then boot your pc from the CDROM

How can I make a file read, write, and

executable(rwx)?

How can I make the file non-accessable by anyone?

chmod 777 file chmod 000 file

How do I repeat the last command?

How do I repeat the command source .bashrc?

!source, or !sou, !56, etc.

How do I use mplayer to play an audio file with a

movie?

mplayer –audiofile file movie.avi

How can I get help on a Unix command?

man command

QUIZ IV – EXTREME LINUX POWER

LINUX CHALLENGE

LINUX COMMAND

How

do

I

list

all

files

that

do

not

have

.avi

in

them?

ls | grep -v .avi -v means everything except .avi$ means everything ending with .avi

How

do

I

list

all

files

that

do

not

have

.avi

in

them

and

begin

with

d?

ls | grep -v .avi | grep ^d How do

I

print only the sizes of files in a directory? ls -al -h | awk '{print $6}' The $6 means the 6 th^ column How do

I

place the previous info into a file? ls -al -h | awk '{print $6}' > file.txt How do

I

list only directories? ls -al | grep ^d How do I list files with only .mov in the title? ls | grep .mov How do

I

look at my environment variables? set How do

I

render Maya in batch mode? How do

I

get a^ list of the options? Render -s 1 -e 100 sas.mb Render -h USE CAPITAL R How do

I^

access the CDROM? cd /mnt/cdrom How do

I

store a directory for retrieval later? How do

I

retrieve the last pushed directory? pushd dirName popd How do

I

write a cleaner program to remove any files that are not within the file students.txt and do not end with .avi? mkdir good;for x in cat ~/students; do mv $x.avi good; done; rm ; mv good/ .;rmdir good; Where do

I^

put programs that I have written? In your home directory, mkdir bin. You environment variables are already set to look in this folder What do

I

have to do in order for a^ file to be executable as bash script program? Chmod 777 yourFile How do

I^

write a^ program that looks through a directory and flags the files that are over 1.1 megs? for x in ls -l | grep -v ^d | awk '{if ($5>1100000) print $9}' | sort -n; do echo "$x IS TOO DAMN BIG"; done

How do

I

ls through a long directory and pipe the output into more? ls -sl | more

Who is the ultimate master of Bash scripting here at SCAD? Tom Davis

QUIZ V – MASSIVELY EXTREME LINUX POWER

LINUX CHALLENGE

LINUX COMMAND

How

do

I

eject

a

CDROM?

How

do

I

put

in

back

in?

eject eject -t

How

do

I

view

my

pushed

directory

list?

dirs What are good documentation pages for Linux? tldp.org The Linux Documentation Project How do find and replace text in a file? sed “s/giruiz/gilbert/g” file.txt^ s means search, g means globally How can

I

add directories to my path list? (Where Linux will go to look for files) export PATH="$PATH:/home/dave" (With symbolic link, you must also add destination folder) How do

I

search for certain text phrases in the man pages of a certain command? man mplayer | grep audio How do

I

see how many items are in a directory? ls | grep -c. How do

I^

count the number of items that begin with D or m? ls | grep -c ^[Dm]