Showing posts with label LINUX. Show all posts
Showing posts with label LINUX. Show all posts

Friday, 22 March 2013

Useful Linux Commands

Useful Linux Commands

To change owner of folder in Ubuntu:
$ 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

Linux Device Driver Interview Questions

Linux Device Driver Interview Questions

What is kernel panic? How it occur? How to debug and fix it?
What is trace32 simulator? How to use it?
What is debugfs? How to use it?
What is MMU? What is the role of MMU?
What are the kernel debugging tools? How to use them?
What is memory corruption? How to debug it?
What is cache corruption?
What is bit-flip?
What is useof L1 and L2 Cache memory?
(Note: L1- Faster but smaller in size and private to each cpu core
           L2- Slower but bigger in size and common to all cores)
How to disable L1 or L2 cache memory? (Note: from kernel config)
What is vmlinux? What are the modules it contain? How to build it?
What is memory scrubbling?
What is TLB (Translation lookup table)?
What is RTB, ETB, Page poisoing, slub debugging?
What is use of Signals? What is use of abort signal? Where to use it?
Describe IOMMU architecture?
What is cpu register corruption?