Skip to main content

Posts

Showing posts with the label SUSE

HOW TO RECOVER A FILE DELETED WITHOUT A BACKUP

Recover deleted files with lsof Every process on the system has a directory here with its name on it, inside of which lies many things -- including an fd ("file descriptor") subdirectory containing links to all files that the process has open. Even if a file has been removed from the filesystem, a copy of the data will be right here: /proc/ process id /fd/ file descriptor $ ls -l myfile -rw-r--r-- 1 jimbo jimbo 114383 Oct 31 16:14 myfile $ stat myfile File: `myfile' Size: 114383 Blocks: 232 IO Block: 4096 regular file Device: 341h/833d Inode: 1276722 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 1010/ jimbo) Gid: ( 1010/ jimbo) Access: 2006-10-31 16:15:08.423715488 -0400 Modify: 2006-10-31 16:14:52.684417746 -0400 Change: 2006-10-31 16:14:52.684417746 -0400  REMOVE NOW $ rm myfile $ ls -l myfile ls: myfile: No such file or directory $ stat myfile stat: cannot stat `myfile': No such file or directory $ AN

Open SUSE Administration Commands

        YaST Administration Tool Run YaST using Qt GUI # yast –-qt Run YaST using Gtk GUI # yast --gtk Run YaST in text-mode # yast --ncurses Install package using YaST # yast -i packagename.rpm Remove package using YaST # yast --remove packagename.rpm Update package using YaST # yast --update packagename.rpm List available YaST modules # yast -l Use modules # yast modulename ZYpp System List repositories # zypper lr Add repository # zypper ar -f <URL> <alias> Refresh repositories # zypper ref Update installed packages # zypper up Perform a distribution upgrade # zypper dup   RPM Installing a package # rpm -ivh package.rpm Upgrading a package # rpm -Uvh package.rpm Upgrading a package # rpm -Uvh package.rpm Network View network interfaces # ifconfig -a # ip a s # iwconfig   Connect to wireless network # iwlist wlan0 scan # iwconfig wlan0 essid NETWORK_ID key WIRE