Nguyễn Thuỳ Chi
New member
How do I run a file in Linux terminal?
Answer
The way professionals do it
Part 2 Creating a Quick Text File
Answer
The way professionals do it
- 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.
Code:
https://www.flickr.com/photos/xmodulo/13769928683
- 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 .
- Type emacs filename.txt into Terminal.
- Press ↵ Enter .
- Get to know Emacs commands.
- Enter your document’s text.
- Press Ctrl + X , then press S . Doing so will save your file.
- Press Ctrl + X , then press Ctrl + C .
- Re-open your text file.
- Open up Terminal.
- Type. sudo su. so that we have root control. The password you used when setting up the Ubuntu user account will work for this.
- To install the software package type: sudo apt-get install samba smbfs.
- Edit the configuration. First, mv /etc/samba/smb.conf /etc/samba/smb.conf.orig. and then.
- Copy the app directory to a folder of your choice.
- Download the image from here and place it in the same folder.
- Create a *.desktop file in your /home/username/.local/share/applications/ folder.
- Copy paste the contents: