Unix
Unix
Each question should be answered with practical significance from a your job domain perspective
(Ex: a Physical Design engineer should give their perspective on how they will use the command)
UNIX TRAINING
• Units
• Notifications
• Discussions
• Grades
• Course Details
UNIX Concepts:
feature in Windows
Contents of RC file
by admin)
/usr/bin
/usr/tools
/usr/proj
PATH variable
Setenv
alias
•
Working with text editors in Unix
Gvim
will behave
Nedit
Emacs
Listing files
Searching files
Moving files
multiple folders)
Revision Management
o
CSV, Clearcase
Alias
Date
Sleep
Listing file
Remove
Mkdir
Pwd
Cd
Su
o
Password
Xhost
xterm
Pushd, popd
Gvim
History
Grep
Find
–r , -i, *, -d, -s
Sending mail
Gunzip
Makefile
GVIM Commands
o
Open file
Split
Changing font
Adding line
Questions:
1.
a.
2.
3.
folder recursively
a.
ls -R
4.
a.
5.
Rename all the files within a folder with suffix “Unix_” i.e.
suppose a folder has two files a.txt and b.pdf than they both should be renamed
a.
for i in *.*; do mv $i
Unix_$i; done ;
6.
Rename all files within a folder with the first word of their
content(remember all the files should be text files. For example if a.txt
contains “Unix is an OS” in its first line then a.txt should be renamed to
Unix.txt
a. for i
7.
contains .c and .h files, it also contains some other .txt files and .pdf files.
Write a Linux command that will count the number of lines of your text files.
That means total line count of every file. (remember you have to count the
a. wc
–l *.txt
8.
a.
"${i//foo/bar}";done
9.
a.
10.
Changing directory
a.
b.
pushd
c.
d.
11.
Permissions of file
a.
Check permissions
b.
Change permissions
12.
a.
Du –sh *
b.
Df –k .
13.
a.
date +%T
14.
Command for printing the year, month, and date with a horizontal
a.
date +%Y%t%B%t%e
15.
a.
b.
Ctrl + D
16.
a.
17.
sed
18.
Find out about the sleep command and start five jobs in the
a.
sleep 600 & sleep 600 & sleep 600 & sleep 600 &
19.
a.
ps
UNIX TRAINING
• Units
• Notifications
• Discussions
• Grades
• Course Details
Unix
Assignment Questions
computer system?
systems?
or not?
UNIX?
other?
and Paging?
14. What is difference between Hard Link and
bit or 64 bit?
a particular file?
19. You have a tab separated file which contains Name, Address and PhoneNumber,
list down all Phone Number without their name and Addresses?
20. Your home directory is full? How will you find which
21. Shell
scripting in UNIX
22. Copying
Scp
ftp
23. Which
24. How to