SOME TIPS IN LINUX

  •   Show full path for all files in current directory

find . -type f 
  • Samba: Ubuntu 'net usershare' returned error 255

Solution:
1. Open up a terminal (press ctrl + alt + t)
2. Type in gedit /etc/samba/smb.conf
3. Type in your password (if needed)
4. Search for the [Global] section (press ctrl + f and type in global)
5. Add the following line: "usershare owner only = false"
  •  Adding application into "Open with..." list

    Find and use any text editor to open the file "abc.desktop" where "abc" is the name corresponding with your application. Add "%F" at the line "Exec=...".
    Here is an example: [Desktop Entry]
    Name=Sublime text 2
    Comment=The most powerful text editor
    Exec=sublime %F
    Icon=/opt/Sublime Text 2/Icon/256x256/sublime_text.png
    Terminal=false
    Type=Application
    StartupNotify=true
    [New Window Shortcut Group]
    Name=New Window
    Exec=sublime -n
  • Using SCP for upload and download from remote server

    • Download
    scp -P [port] -r [user]@[server's address]:[path-to-source] [path-to-destination]
    • Upload
    scp -P [port] -r [path-to-source] [user]@[server's address]:[path-to-destination] Note: put -r parameter for directory

Comments

Popular Posts