0% found this document useful (0 votes)
10 views

Vlsi 021191003 LabReport0

The document provides instructions for navigating directories and files on a Linux system. It demonstrates how to change directories, list files, view file paths, create/copy/rename/remove files, view the date and users logged in, and use grep to search for text within files.

Uploaded by

Md Ifrat Rahman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Vlsi 021191003 LabReport0

The document provides instructions for navigating directories and files on a Linux system. It demonstrates how to change directories, list files, view file paths, create/copy/rename/remove files, view the date and users logged in, and use grep to search for text within files.

Uploaded by

Md Ifrat Rahman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

1.

Go to your home directory

[eee442_07@vlsiserver2 ~]$ cd

2. List the files under your home directory

[eee442_07@vlsiserver2 ~]$ ls

lab0 saimoon_442

3. Print the path of your home directory

[eee442_07@vlsiserver2 ~]$ pwd

/home/eee442_07

4. List the hidden files in your home directory

[eee442_07@vlsiserver2 ~]$ ls -a

5. Create a directory in your first name

[[eee442_07@vlsiserver2 ~]$ mkdir saimoon

6. Go to the directory you just created and long list the files under it

[eee442_07@vlsiserver2 ~]$ cd saimoon/

[eee442_07@vlsiserver2 saimoon]$ ls -l

total 0

7. Create a file in your name directory

[eee442_07@vlsiserver2 saimoon]$ vi mux21.v

8. Display the content of the file on the screen

[eee442_07@vlsiserver2 saimoon]$more mux21.v

9. Copy the file into another file

[eee442_07@vlsiserver2 saimoon]$ cp mux21.v mux41.v


10. Rename the file you copied

[eee442_07@vlsiserver2 saimoon]$ mv mux41.v mux42.v

11. Remove the file you created

[eee442_07@vlsiserver2 saimoon]$ rm mux42.v

12. Go one directory above i.e. parent than where you are

[eee442_07@vlsiserver2 saimoon]$ cd ..

[eee442_07@vlsiserver2 ~]$ pwd

/home/eee442_07

13. Print todays date

[eee442_07@vlsiserver2 ~]$ date

Thu Feb 2 00:43:57 +06 2023

14. List all the users currently on the system

[eee442_07@vlsiserver2 ~]$ who

eee442_21 pts/12 2023-02-02 00:42 (10.10.112.6)

eee442_16 pts/13 2023-02-02 00:32 (10.10.112.13)

tahoe02 pts/14 2023-02-02 00:27 (10.10.117.19)

tahoe01 pts/15 2023-02-02 00:22 (10.10.248.0)

tahoe35 pts/16 2023-02-02 00:27 (10.10.117.3)

eee442_07 pts/17 2023-02-02 00:27 (10.10.112.27)

tahoe39 pts/20 2023-02-02 00:27 (10.10.117.6)

eee442_07 pts/21 2023-02-02 00:27 (localhost:15.0)

eee442_16 pts/24 2023-02-02 00:32 (localhost:11.0)

eee442_13 pts/25 2023-02-02 00:32 (10.10.112.14)

eee442_13 pts/26 2023-02-02 00:33 (localhost:17.0)

eee442_19 pts/27 2023-02-02 00:38 (10.10.112.35)

tahoe16 pts/28 2023-02-02 00:38 (10.10.247.146)

eee442_19 pts/29 2023-02-02 00:39 (localhost:18.0)


eee442_21 pts/30 2023-02-02 00:42 (localhost:10.0)

15. Find out what’s your user name

[eee442_07@vlsiserver2 ~]$ who am i

eee442_07 pts/17 2023-02-02 00:27

(10.10.112.27)

16. Display the manual page for ‘grep’ command

[eee442_07@vlsiserver2 ~]$ man grep

17. Copy the all.lef file from ~sahmed/eee442/lab4/lef/ into your name directory

[eee442_07@vlsiserver2 ~]$ cp ~sahmed/eee442/lab4/lef/all.lef saimoon/

18. Display all the lines of all.lef file that contain the word MACRO

[eee442_07@vlsiserver2 saimoon]$ grep MACRO all.lef

19. Display all the lines of all.lef file that contain the word MACRO but not ENDMACRO

[eee442_07@vlsiserver2 saimoon]$ grep MACRO all.lef | grep -v ENDMACRO all.lef

20. Find out how many lines have the word MACRO and ENDMACRO

[eee442_07@vlsiserver2 saimoon]$ grep -c MACRO all.lef | grep -c ENDMACRO all.lef

You might also like