sys-scripts
[scripts-and-commands.git] / sys-commands.sh
blob0a6a2610728627a2fa9797e43b23406d32a2bc7b
1 #list uuids and labels
2 sudo blkid
4 #list file system info
5 sudo fdisk -l
9 #users and groups
10 #[u:user g:group o:others a:all] [+:give -:take] [r:read w:write x:execute] [-R:recursive]
11 #ls -l list with permissions
12 sudo groupadd local-disk #create a group
13 sudo usermod -a -G local-disk mustafa #add an existing user to that group
14 sudo chown -R mustafa:local-disk vid/ #own a directory and its contents
15 sudo chmod g+rwx -R vid/ #give owners group rwx access
16 sudo chmod o-rwx -R vid/ #take rwx access from others
18 #gnome
19 gconf-editor
20 gconftool-2 --set --type bool /apps/nautilus/preferences/media_automount false
23 #git
24 git init
25 git add
26 git commit
27 git remote add origin ssh://repo.or.cz/srv/git/armadillo_firmware.git
28 git push --all origin
30 git clone git://repo.or.cz/armadillo_firmware.git
31 git branch -r #access other branches
32 git remote show origin
33 git remote rm origin
34 git push origin master