Useful Linux Commands
$ sudo chown -R owner-user:owner-group folder-name
$ ls -l -> drwxr-xr-x 6 owner-user:owner-group 4096 Nov 3 16:33 folder-name
To Create symlink:
$ ln -s [Target Directory or File] ./[Shortcut]
To get uid (user id):
$ id
To Mount android emulator's sdcard.img on Ubuntu:
$ sudo mount -o rw,uid=user_id,loop sdcard.img mount_point
To Split large file in pieces:
$ split -b 1024M large-file-name piece-file-name
To Join pieces of large file:
$ cat file1 file2 file3 > large.file OR cat file* > large.file
To upgrade Ubuntu:
Press Alt+F2 then Type update-manager -d
To move Ubuntu buttons to right side:
$ gconf-editor -> apps/metacity/general -> button_layout -> menu:maximize,minimize,close
To download git repository:
$ git clone https://github.com/keesj/Android-HelloWorldService.git
To Open Linux share from Windows:
Type in run:- \\linux_ip_address OR name
e.g. \\10.44.82.127\ OR \\myvostro\
To Open Windows share from linux:
Go to Places-> Connect to Server-> Select Windows Share
Enter windows_ip_address OR name, Domain, Password
To Mount Windows share on Ubuntu
$ sudo mount -t cifs //windows_ip_address OR name/folder_name /mount_point -o username=window's, password=window's, domain=window's
To Open remote Desktop from Linux Machine:
$ rdesktop -g 1600x825 remote_mc_name -d domain_name
No comments:
Post a Comment