What is output in theory only for the below commands
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I don't really like if you modify the original post after the first answer. That may lead to conflicts...
I don't know if you [want to] use it as root (that is your #) or those lines are commented and/or copied from somewhere. Can you please add some more details. Is this your homework?
yeah, I was going to ask what number is that one?
if you got a liunx box, then try issuing the command to give you a good idea on what that answer should be....
Code:
userx@manjaroieo:~
$ cat /etc/fstab |egrep -i "/"
# /etc/fstab: static file system information.
UUID=9314724d-c954-4d76-aedf-4e0cb17c2705 / ext4 defaults,noatime,discard 0 1
UUID=ffb281eb-7a82-45f7-b444-9d37e0dfd6bb /home ext4 defaults,noatime 0 2
UUID=47E540DF2714E6A5 /media/ntfs1 ntfs defaults,noatime 0 2
UUID=eb3b4090-d341-4f20-927d-c5414254b767 /media/data1 ext4 defaults,noatime 0 2
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
then loop it up
$ man egrep
looking to see what that '-i' does, and figuring out what does the pattern in the quotes do..
then experiment with it
userx@manjaroieo:~
$ cat /etc/fstab |egrep -i "UUID"
# be used with UUID= as a more robust way to name devices that works even if
UUID=9314724d-c954-4d76-aedf-4e0cb17c2705 / ext4 defaults,noatime,discard 0 1
UUID=ffb281eb-7a82-45f7-b444-9d37e0dfd6bb /home ext4 defaults,noatime 0 2
UUID=47E540DF2714E6A5 /media/ntfs1 ntfs defaults,noatime 0 2
UUID=eb3b4090-d341-4f20-927d-c5414254b767 /media/data1 ext4 defaults,noatime 0 2
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.