Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of ubuntu Command set

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you the example analysis of the ubuntu command set, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

1. "run" (do not know what to call, and win under the start-run similar): alt+f2, in which you can enter the name of the program, such as running EVA, just type "eva", without the need for a path.

two。 Add program shortcuts to the menu

System-* item-main menu-New Project

Fill in the command (that is, the program name, if you want to establish a shortcut to sopcast, enter sopcast)

3. Virtual optical drive part

Mount the ISO file and sudo mount-o loop files.iso destination folder (sudo temporarily acquires root permission in the terminal)

Uninstall the sudo umount mount folder

For example, mount / home/dudu/XP.iso to / home/dudu/iso folder

Sudo mount-o loop / home/dudu/XP.iso / home/dudu/iso

Orsudo mount-t iso9660 / home/dudu/XP.iso / home/dudu/iso (iso9660 is the specified file format)

Uninstall the ISO file sudo umount / home/dudu/iso

Establishment of .iso file

1. Create from a folder, such as mirroring the file under / home/dudu/ebooks/ to / home/dudu/ebooks.iso

(sudo) mkisofs-o / home/dudu/ebooks.iso / home/dudu/ebboks/

two。 Set up from the optical drive (the optical drive path will vary according to the actual situation)

Sudo umount / media/cdrom0

(sudo) dd if=/media/cdrom0 of=/home/dudu/ebooks.iso bs=1024

File burning (can also be burned using programs such as K3b)

1. Formatted disk

Sudo umount / media/cdrom0

(sudo) cdrecord dev=/media/cdrom0 blank=fast

two。 Burning recording

Enter nautilus burn:/// on the command line

Open a new window and drag the file into the burning window

4. Enter the directory cd destination folder

Return to the previous directory cd..

Cd ~ or cd returns to the current user's host directory

Cd ~ the user name returns to the specified user's host directory

Cd-return to the directory where you were last located

5. Create a new folder. Of course, you can also create it by right-clicking, such as creating a folder named iso under / home/dudu.

Sudo mkdir / home/dudu/iso

Due to the use of sudo, only root can change this folder

6. Get root permission

Sudo su

Orsudo-I

Use the file manager as root, for example, I want to delete the iso folder created above under the graphical interface

Sudo nautilus

Password modification (use with caution)

Root password change sudo passwd root and then enter the password again

7. Document management section

File backup (replication), sudo cp

Sudo cp / etc/samba/smb.conf / etc/samba/smb.conf_backup

(backup / etc/samba/smb.comf to / etc/samba/, named smb.conf_backup)

Mobile mv format is the same as cp

Delete rm filename

Ls-a lists all files in the current directory, including. Implied file of the header

Ls-l or ll lists the details of the files in the current directory

Link (similar to the shortcut under WIN), excerpted from "Bird's Private Cuisine"

Ln source file link name creates a hard link to the source file of the current directory

Ln / home/test / usr/test1 establish a hard link to / home/test under / usr

Ln-s a b creates a symbolic link b for an in the current directory

The-s parameter forms a symbolic link, which is equivalent to a shortcut. In addition, if you make a link like this:

Ln-s / bin / root/bin

So if you go to the / root/bin directory, (please pay attention! This directory is actually / bin this directory, because you have made a link file! ) so, if you enter / root/bin the newly created link directory and kill the data in it, uh-huh! All the data in / bin is gone! Please pay attention to this point! Not all the information under / root is root! You also need to pay attention to this property!

The above is all the contents of the article "sample Analysis of the ubuntu Command set". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report