Redian新闻
>
【EB2 2018年4月第18绿】TSC EB2 RD 11/14/2016 主副同绿
avatar
【EB2 2018年4月第18绿】TSC EB2 RD 11/14/2016 主副同绿# EB23 - 劳工卡
a*0
1
The Unix Commands
其实就是攒了一下网上的资料
# Create a new tar archive.
# the folder dirname/ is compressed into archive_name.tar
tar cvf archive_name.tar dirname/
# Extract from an existing tar archive
tar xvf archive_name.tar
# View an existing tar archive
tar tvf archive_name.tar
# Search for a given string in a file (case in-sensitive search).
grep -i "the" demo_file
# Print the matched line, along with the 3 lines after it.
grep -A 3 -i "example" demo_text
# Search for a given string in all files recursively
grep -r "ramesh" *
# Match regular expression in files
grep "lines.*empty" demo_file
# Match the string as a whole word
grep -iw "is" demo_file
# When you want to count that how many lines matches the given pattern/
string, then use the option -c
grep -c "go" demo_text
# To show the line number of file with the line matched
grep -n "go" demo_text
# Find the passwd file under root and two levels down.
#(i.e root — level 1, and two sub-directories — level 2 and 3 )
find / -maxdepth 3 -name passwd
# Find files using file-name ( case in-sensitve find)
find -iname "MyCProgram.c"
# Execute commands on files found by the find command
# it is to calculate the file's signature which is a hashcode
find -iname "MyCProgram.c" -exec md5sum {} ;
# Find all empty files in home directory
find ~ -empty
# Shows the files or directories whose name are not MyCProgram.c
find -maxdepth 1 -not -iname "MyCProgram.c"
# Find files which has read permission only to group
find . -perm 040 -type f -exec ls -l {} ;
# The following command will display the top 5 largest file in the current
directory and its subdirectory.
find . -type f -exec ls -s {} ; | sort -n -r | head -5
# Top 5 smallest: Technique is same as finding the bigger files, but the
only difference the sort is ascending order.
find . -type f -exec ls -s {} ; | sort -n | head -5
# Find files bigger than the given size
find ~ -size +100M
# Find files smaller than the given size
find ~ -size -100M
# When you substitute a path name which has ‘/’, you can use @ as a
delimiter instead of ‘/’.
# In the sed example below, in the last line of the input file, /opt/omni/
lbin was changed to /opt/tools/bin
sed '[email protected]/opt/omni/[email protected]/opt/tools/[email protected]' path.txt
# sed & Usage: Substitute /usr/bin/ to /usr/bin/local
sed '[email protected]/usr/[email protected]&/[email protected]' path.txt
# sed & Usage: Match the whole line
sed '[email protected]^.*[email protected]<<>>@g' path.txt
# Grouping using ()
# Get only the first path in each line, the number "1" is for the first
matched group
sed 's/(/[^:]*).*/1/g' path.txt
# In the above command $ specifies substitution to happen only for the last
line.
# Output shows that the order of the path values in the last line has been
reversed.
sed '[email protected]([^:]*):([^:]*):([^:]*)@3:2:[email protected]' path.txt
# Get the list of usernames in /etc/passwd file
# This sed example displays only the first field from the /etc/passwd file.
sed 's/([^:]*).*/1/' /etc/passwd
# Parenthesize first character of each word
echo "Welcome To The Geek Stuff" | sed 's/(b[A-Z])/(1)/g'
# Convert DOS format to UNIX format
sed 's/$/r/' input.txt > output.txt
# Commify the simple number
sed 's/(^|[^0-9.])([0-9]+)([0-9]{3})/12,3/g' numbers
# Remove duplicate lines using awk
awk '!($0 in array) { array[$0]; print }' temp
# Print all lines from /etc/passwd that has the same uid and gid
awk -F ':' '$3==$4' passwd.txt
# Print only specific field from a file
awk '{print $2,$5;}' employee.txt
# Awk reads and parses each line from input based on whitespace character by
default and set the variables $1,$2
# Awk FS variable is used to set the field separator for each record
# Awk FS can be set to any single character or regular expression
# 1 Using -F command line option: awk -F 'FS' 'commands' inputfilename as
following
awk -F':' '{print $3,$4;}' /etc/passwd
# 2 Awk FS can be set like normal variable: awk 'BEGIN{FS="FS";}' as
following
BEGIN{
FS=":";
print "NametUserIDtGroupIDtHomeDirectory";
}
{
print $1"t"$3"t"$4"t"$6;
}
END {
print NR,"Records Processed";
}
# And the execution of the awk script
awk -f etc_passwd.awk /etc/passwd
# Output field separator: field 3 and 4 are connected with "="
awk -F':' 'BEGIN{OFS="=";} {print $3,$4;}' /etc/passwd
# Awk RS Example: Record Separator variable and its execution
BEGIN {
RS="nn";
FS="n";
}
{
print $1,$2;
}
awk -f student.awk student.txt
# Awk ORS Example: Output Record Separator Variable
awk 'BEGIN{ORS="=";} {print;}' student-marks
# Awk NR Example: Number of Records Variable
awk '{print "Processing Record - ",NR;}END {print NR, "Students Records are
processed";}' student-marks
# Awk NF Example: Number of Fields in a record
awk '{print NR,"->",NF}' student-marks
# Awk FILENAME Example: Name of the current input file
awk '{print FILENAME}' student-marks
# Awk FNR Example: Number of Records relative to the current input file
awk '{print FILENAME, FNR;}' student-marks bookdetails
# diff command examples :Ignore white space while comparing.
diff -w name_list.txt name_list_new.txt
# sort command examples Sort a file in ascending order
sort names.txt
# Sort a file in descending order
sort -r names.txt
# Sort passwd file by 3rd field. Filed separator is : (-t) by a key (-k)
sort -t: -k 3n /etc/passwd | more
# To view oracle related environment variables
export | grep ORACLE
# To export an environment variable:
export ORACLE_HOME=/u01/app/oracle/product/10.2.0
# To create a *.gz compressed file:
gzip test.txt
# To uncompress a *.gz file:
gzip -d test.txt.gz
# To extract a *.zip compressed file:
unzip test.zip
# To view current running processes
ps -ef | more
# To view current running processes in a tree structure. H option stands for
process hierarchy.
ps -efH | more
# for kill
ps -ef | grep vim
kill -9 7243
# To displays only the processes that belong to a particular user use -u
option.
# The following will show only the top processes that belongs to oracle user.
top -u oracle
# Miscellaneous
# Displays the file system disk space usage. By default df -k displays
output in bytes
df -k
# Get confirmation before removing the file.
rm -i filename.txt
# Following example recursively removes all files and directories under the
example directory
rm -r example
# Copy file1 to file2 preserving the mode, ownership and timestamp.
cp -p file1 file2
# Rename file1 to file2. if file2 exists prompt for confirmation before
overwritting it.
mv -i file1 file2
# Give full access to user and group (i.e read, write and execute ) on a
specific file
chmod ug+rwx file.txt
# Revoke all access for the group (i.e read, write and execute ) on a
specific file.
chmod g-rwx file.txt
# Apply the file permissions recursively to all the files in the sub-
directories. o is for others
chmod -R ugo+rwx file.txt
# One more way to change
chmod 777 file.txt
# create a directory
mkdir ~/temp
# Use ifconfig command to view or configure a network interface on the Linux
system
ifconfig -a
# Print N number of lines from the file named filename.txt
tail -n N filename.txt
# To install apache using yum
yum install httpd
# To upgrade apache using yum
yum update httpd
# To uninstall/remove apache using yum.
yum remove httpd
# Can do the samethings using rpm
# The quick and effective method to download software, music, video from
internet is using wget command.
wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.1.tar.gz
avatar
t*2
2
经历了所有可以想象的问题,从焦虑等待到绝望,再到平静等待安心生活。从提交485
到批经历了18个月。
首先公司的律师真的很不靠谱。工作一年以后就开办PERM。每次问他他总说他已经file
了,让我等。每次问都是进展很顺利。等了一年还是没消息。追问下,他说他搞忘了,
原来根本就没有办。有重新和他商量,他又说他开始办了,一切顺利。可等了6个月后
。他又说他忘了。当时真他妈地想给他两耳光。没办法,软磨硬泡每天去骚扰,终于提
交了。不到3个月就批了。公司律师浪费了1年半的时间。
11/15/2016: TSC received case; TSC received your biometrics fee and will
begin process your case
03/22/2017: TSC are producing your card and will mail it to you.
03/22/2017: TSC reopened your case and are reconsidering our previous
decision
03/22/2017: TSC approved your case
03/22/2017: TSC reopened your case and are reviewing it again
这一天收到USCIS的10多条短信,不知道任何原因被重新审查。发信给TSC
,回复就是 Extended review.以为几个月后就会批的,没想这一等就是
一年多。

10/05/2017: TSC need more information from you
10/26/2017: TSC received your response to our request. Your case is no
longer on hold
RFE:体检和485-J,期间有infopass几次,都没有实质性的作用。最后都
懒得去 infopass

10/27/2017: TSC corrected your name for your case.
12/02/2017: TSC need more information from you.
第 2 个RFE, 原以为很快就会批,结果一等就是4个多月。期间联系两个
senator,也好像没什么作用,等到的回复就是模板回复,总是还要再等
60天。期间
还有agent 去世,等到senator回复等了很久很久
12/22/2017: TSC received your response to our request.
04/18/2018: TSC are producing your card and will mail it to you.
期间有更新EAD,都是自己DIY的, 都很顺利,不到3个月就批了。其实很多东西都可以
自己做的,不必请过律师,很多律师很不靠谱,尤其是公司外包的。有什么问题可以私
信问我。
avatar
y*n
3
mark.
avatar
F*u
4
你这号几个人用?
我看你最开始是跟配偶交的485,怎么又成了自己办PERM了
写了这么半天也没写一下EB几,没法归类统计

485
file

【在 t*****2 的大作中提到】
: 经历了所有可以想象的问题,从焦虑等待到绝望,再到平静等待安心生活。从提交485
: 到批经历了18个月。
: 首先公司的律师真的很不靠谱。工作一年以后就开办PERM。每次问他他总说他已经file
: 了,让我等。每次问都是进展很顺利。等了一年还是没消息。追问下,他说他搞忘了,
: 原来根本就没有办。有重新和他商量,他又说他开始办了,一切顺利。可等了6个月后
: 。他又说他忘了。当时真他妈地想给他两耳光。没办法,软磨硬泡每天去骚扰,终于提
: 交了。不到3个月就批了。公司律师浪费了1年半的时间。
: 11/15/2016: TSC received case; TSC received your biometrics fee and will
: begin process your case
: 03/22/2017: TSC are producing your card and will mail it to you.

avatar
c*r
5
avatar
t*2
6
I am the primary applicant; EB2
This account has been shared by three people.

【在 F*********u 的大作中提到】
: 你这号几个人用?
: 我看你最开始是跟配偶交的485,怎么又成了自己办PERM了
: 写了这么半天也没写一下EB几,没法归类统计
:
: 485
: file

avatar
b*c
7
bookmarked
avatar
h*u
8
非常感谢!

【在 a**********0 的大作中提到】
: The Unix Commands
: 其实就是攒了一下网上的资料
: # Create a new tar archive.
: # the folder dirname/ is compressed into archive_name.tar
: tar cvf archive_name.tar dirname/
: # Extract from an existing tar archive
: tar xvf archive_name.tar
: # View an existing tar archive
: tar tvf archive_name.tar
: # Search for a given string in a file (case in-sensitive search).

avatar
l*r
9
赞分享!
avatar
w*k
11
avatar
c*w
12
re

【在 a**********0 的大作中提到】
: The Unix Commands
: 其实就是攒了一下网上的资料
: # Create a new tar archive.
: # the folder dirname/ is compressed into archive_name.tar
: tar cvf archive_name.tar dirname/
: # Extract from an existing tar archive
: tar xvf archive_name.tar
: # View an existing tar archive
: tar tvf archive_name.tar
: # Search for a given string in a file (case in-sensitive search).

avatar
T*g
13
大牛,这个面试考吗?
avatar
L*t
14
system admin估计要。

【在 T******g 的大作中提到】
: 大牛,这个面试考吗?
avatar
s*r
15
mark!
avatar
s*y
16
mark
avatar
m*l
17
mark
avatar
d*s
18
mark
avatar
a*0
19
忽然发现一个问题 所有的escape都自动被删除了
avatar
M*g
20
Mark
avatar
r*r
21
mark
avatar
w*9
22
收藏了。👍
avatar
o*0
23
mark
avatar
f*g
24
mark
avatar
r*d
25
Thanks. Mark.
avatar
s*a
26
Mark!!
avatar
A*s
27
Mark
avatar
A*s
28
Mark
avatar
b*m
29
mark!
avatar
z*4
30
Mark
avatar
J*4
31
赞一个!楼主辛苦了!

【在 a**********0 的大作中提到】
: The Unix Commands
: 其实就是攒了一下网上的资料
: # Create a new tar archive.
: # the folder dirname/ is compressed into archive_name.tar
: tar cvf archive_name.tar dirname/
: # Extract from an existing tar archive
: tar xvf archive_name.tar
: # View an existing tar archive
: tar tvf archive_name.tar
: # Search for a given string in a file (case in-sensitive search).

avatar
S*I
32
http://xkcd.com/1168/

【在 a**********0 的大作中提到】
: The Unix Commands
: 其实就是攒了一下网上的资料
: # Create a new tar archive.
: # the folder dirname/ is compressed into archive_name.tar
: tar cvf archive_name.tar dirname/
: # Extract from an existing tar archive
: tar xvf archive_name.tar
: # View an existing tar archive
: tar tvf archive_name.tar
: # Search for a given string in a file (case in-sensitive search).

avatar
T*u
33
大好人啊
avatar
g*8
34
avatar
n*n
35
mark
avatar
s*6
36
mark
avatar
b*n
37
太赞了!!!
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。