Can I password protect files in OneDrive?
Answer
Password Protected file sharing links with OneDrive. Until now, you could send a link to a OneDrive stored file or folder but there was no control over who used that link. If the link ‘escaped’ to other people, they could download or even edit the document or file. Now anyone using the link can be asked for a password.
Photo in the article by “小鑫的GNU/Linux学习网站- 小鑫博客”
To run the .sh file (in Linux and iOS) in command line, just follow these two steps:
Answer
Password Protected file sharing links with OneDrive. Until now, you could send a link to a OneDrive stored file or folder but there was no control over who used that link. If the link ‘escaped’ to other people, they could download or even edit the document or file. Now anyone using the link can be asked for a password.
Photo in the article by “小鑫的GNU/Linux学习网站- 小鑫博客”
Code:
https://linux.xiazhengxin.name/index.php?m=06&y=11&entry=entry110601-195440
- open a terminal (Ctrl+Alt+T), then go in the unzipped folder (using the command cd /your_url)
- run the file with the following command.
- open a terminal (Ctrl+Alt+T), then go in the unzipped folder (using the command cd /your_url)
- run the file with the following command.
- Create a file using any text editor. The first line must begin with the string #!/bin/csh.
- Give yourself execute permission with the chmod u+x filename command.
- You can run the shell script by simply typing filename as if it were a regular command.
- Type cat > filename.txt into Terminal. You’ll replace “filename” with your preferred text file name (e.g., “sample”).
- Press ↵ Enter .
- Enter your document’s text.
- Press Ctrl + Z .
- Type ls -l filename.txt into Terminal.
- Press ↵ Enter .
- Open Applications -> Accessories -> Terminal.
- Find where the .sh file. Use the ls and cd commands. ls will list the files and folders in the current folder. Give it a try: type “ls” and press Enter.
- Run the .sh file. Once you can see for example script1.sh with ls run this: ./script.sh.
- save your hello.py program in the ~/pythonpractice folder.
- Open up the terminal program.
- Type cd ~/pythonpractice to change directory to your pythonpractice folder, and hit Enter.
- Type chmod a+x hello.py to tell Linux that it is an executable program.
- Type ./hello.py to run your program!
- Write and save the program. Open a simple text editor (e.g gedit), IDE (Eclipse) or command line code editor (Nano or Vim).
- Compile the program. GCC (GNU Compiler Collection) is installed by default, in Ubuntu.
- Execute the program. To execute the program, you need to run – ./hello1.